OverviewProductsPlatformsAPI ReferenceResources
Rcs

Request an RCS agent

POSThttps://zernio.com/api/v1/rcs/agents

Requests a new agent for a profile, with a new company (brand) or an existing one (brandId, skips vetting when it is already verified). A profile can hold several agents.

The request lands in our review: nothing is filed with the carriers or billed until we submit it.

  • Requires usage-based billing and a card on file.
  • Send an Idempotency-Key header to make retries safe.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

profileIdstringRequired
displayNamestring, max 40Required

Shown as the sender name.

useCasestringRequiredOne of MULTI_USE | PROMOTIONAL | TRANSACTIONAL | OTP
profileRcsAgentProfileRequired

The agent's public profile. At least one of phone, website or email is required.

descriptionstring, max 100Required
logoUrlstring (uri)Required

224x224, max 50 KB. Upload any image through POST /v1/rcs/assets to get a compliant URL.

heroUrlstring (uri)Required

Banner, 1440x448, max 200 KB. Upload through POST /v1/rcs/assets.

brandColorstringRequired

Hex colour, e.g. #1A73E8. Needs 4.5:1 contrast against white.

privacyPolicyUrlstring (uri)Required
termsUrlstring (uri)Required
Optional parameters6 fields
brandIdstring
brandRcsBrandInput
displayNamestring, max 100Required
legalNamestring, max 100Required

Exactly as on IRS records.

legalEntityTypestringRequiredOne of LIMITED_LIABILITY_COMPANY | SOLE_PROPRIETORSHIP | PARTNERSHIP | CORPORATION | S_CORPORATION
organizationTypestringRequiredOne of PRIVATE_PROFIT | PUBLIC_PROFIT | NON_PROFIT | GOVERNMENT
websiteUrlstring (uri)Required
taxIdstringRequired

US: the EIN, 9 digits, optionally NN-NNNNNNN. Elsewhere: the national tax or company registration id.

addressobjectRequired
contactobjectRequired
smsFallbackFromstring

One of your SMS-enabled numbers. Phones without RCS get the message as SMS from it.

profile[].phoneobject
profile[].websiteobject
profile[].emailobject

Headers

Optional
Idempotency-Keystring, max 255

Optional client-generated unique key (e.g. a UUID) that makes retries safe.

  • Same key + same body: replays the original response.
  • Same key + different body: 422.
  • Key still processing: 409.

A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.

On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.

Responses

Success· the request worked

Errors· the request failed

POST/v1/rcs/agents
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.rcs.createRcsAgent({  body: {    profileId: 'profile_abc123',    displayName: 'Example',    useCase: 'MULTI_USE',    profile: {      description: 'Hello, world!',      logoUrl: 'https://example.com',      heroUrl: 'https://example.com',      brandColor: 'string',      privacyPolicyUrl: 'https://example.com',      termsUrl: 'https://example.com',    },  },});console.log(data);
{  "agent": {    "id": "string",    "profileId": "string",    "accountId": "string",    "country": "string",    "status": "requested",    "displayName": "string",    "useCase": "MULTI_USE",    "profile": {      "description": "string",      "logoUrl": "http://example.com",      "heroUrl": "http://example.com",      "brandColor": "string",      "privacyPolicyUrl": "http://example.com",      "termsUrl": "http://example.com",      "phone": {        "number": "string",        "label": "string"      },      "website": {        "url": "http://example.com",        "label": "string"      },      "email": {        "address": "user@example.com",        "label": "string"      }    },    "brand": {      "displayName": "string",      "legalName": "string",      "legalEntityType": "LIMITED_LIABILITY_COMPANY",      "organizationType": "PRIVATE_PROFIT",      "websiteUrl": "http://example.com",      "taxId": "string",      "stockSymbol": "string",      "address": {        "line1": "string",        "line2": "string",        "city": "string",        "state": "string",        "postalCode": "string",        "country": "US"      },      "contact": {        "firstName": "string",        "lastName": "string",        "title": "string",        "email": "user@example.com",        "phone": "string"      },      "id": "string",      "status": "draft",      "createdAt": "2019-08-24T14:15:22Z"    },    "launchRequest": {      "companyOverview": "string",      "agentOverview": "string",      "interactions": [        {          "type": "TRANSACTIONAL_UPDATES",          "description": "string"        }      ],      "messageExamples": [        "string",        "string",        "string"      ],      "consent": {        "optInMethods": [          {            "type": "SMS",            "description": "string"          }        ],        "callToAction": "string",        "callToActionUrl": "http://example.com",        "callToActionMediaUrl": "http://example.com",        "doubleOptIn": true,        "doubleOptInMessage": "string",        "optInMessage": "string",        "helpResponse": "string",        "optOutResponse": "string"      },      "testVideoUrl": "http://example.com",      "additionalInformation": "string"    },    "carrierApprovals": [      {        "approvalId": "string",        "scope": "carrier",        "status": "PENDING",        "carrier": "string",        "approvedAt": "2019-08-24T14:15:22Z",        "rejectedReason": "string"      }    ],    "testDevices": [      {        "testDeviceId": "string",        "phoneNumber": "string",        "inviteStatus": "PENDING"      }    ],    "smsFallbackFrom": "string",    "reviewNote": "string",    "declineReason": "string",    "requestedAt": "2019-08-24T14:15:22Z",    "submittedAt": "2019-08-24T14:15:22Z",    "liveAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z"  }}
OpenAPI specification
Was this page helpful?