GoliathDevelopersGet an API key
Reference/Communicationsgenerated from the gateway manifest

getTextingRegistrationStatus

The organization's A2P 10DLC texting registration, STATUS ONLY.

POST/api/v1/callREADreadruns as the key's owner
View as Markdown

The organization's A2P 10DLC texting registration, STATUS ONLY: each brand (status, statusLabel, useCaseLabel) and its sending campaigns (sendReady true = approved and able to text; rejectionReasons when a carrier refused it). Read-only: registering, resubmitting or retrying happens in the Goliath app (Settings → Phone → Registration). For whether the org can text at all right now, listCommunicationChannels' textingReadiness.

curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "getTextingRegistrationStatus",
    "variables": {}
  }'
import { GoliathClient } from '@goliath-data/sdk'

const goliath = new GoliathClient({
  apiKey: process.env.GOLIATH_API_KEY!,
  baseUrl: 'https://server.goliathdata.com',
})

const result = await goliath.communications.getTextingRegistrationStatus()
const res = await fetch('https://server.goliathdata.com/api/v1/call', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.GOLIATH_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    operationId: 'getTextingRegistrationStatus',
    variables: {}
  }),
})
const { data, errors } = await res.json()

Variables

None. Send "variables": {}.

Response

What comes back under data: a list shows as one entry, and a value as its type.

response shape
{
  "data": {
    "twilioQuery": {
      "a2pRegistrations": [
        {
          "id": "<ID>",
          "brandName": "…",
          "useCaseLabel": "…",
          "status": "DRAFT",
          "statusLabel": "…",
          "sendingCampaigns": [
            {
              "id": "<ID>",
              "status": "DRAFT",
              "statusLabel": "…",
              "sendReady": true,
              "rejectionReasons": [
                "…"
              ]
            }
          ]
        }
      ]
    }
  }
}

Errors

Behaviour

A read. It rejects an Idempotency-Key header with 400 bad_request.