OverviewProductsPlatformsAPI ReferenceResources

Order a new iMessage sender

POSThttps://zernio.com/api/v1/imessage/senders/order

Orders a NEW dedicated iMessage sender from the delivery provider. Compare with POST /v1/imessage/senders, which registers a sender you already own.

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
kindstringRequiredOne of phone | email
Optional parameters8 fields
regionstringOne of US | GB

Required for phone senders. Without availableNumberId the number is carrier-assigned in this region and revealed once the sender activates.

availableNumberIdstring

A number from GET /v1/imessage/senders/available-numbers. It is assigned and activated on order instead of waiting for provisioning. Phone senders only.

zipCodestring

US phone senders only. Preferred area for a carrier-assigned number (ignored with availableNumberId).

emailNamestring

Local part for email senders (required for kind: email)

emailDomainstring

Domain for email senders (required for kind: email)

displayNamestring, max 100
purchaseIntentIdstring, max 100

Idempotency key for safe retries

contactobject

Contact card (vCard) attached to the sender, shown when recipients save it. Required before sending with contactCard.

firstNamestring, max 64Required

Responses

Success· the request worked

Errors· the request failed

How it behaves

Activation

Activation is asynchronous (minutes to a few hours). The response is 202 with the lifecycle object; poll GET /v1/imessage/senders/{senderId} or subscribe to the account.connected webhook.

Billing

  • Requires usage-based billing and a valid payment method.
  • Billing starts at activation (monthly per sender, no proration).
  • When the account spend threshold is below the sender price, the first month is charged before the number is bought.
  • When the card's answer takes longer than this request, the order is returned as status: awaiting_payment. The number is ordered automatically once it is paid (usually under 5 minutes).

Retries

Pass purchaseIntentId to make retries idempotent. The provider-side order is never retried automatically.

What an ordered sender includes

Ordered phone senders include SMS/RCS fallback with call forwarding, and the ability to message contacts who have not written first (sending intervals still apply).

POST/v1/imessage/senders/order
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.imessage.orderImessageSender({  body: {    profileId: 'profile_abc123',    kind: 'phone',  },});console.log(data);
{  "success": true,  "sender": {    "id": "string",    "kind": "phone",    "region": "US",    "handle": "string",    "optInLink": "string",    "status": "ordering",    "priceCents": 0,    "provider": "string",    "profileId": "string",    "displayName": "string",    "failureReason": "string",    "accountId": "string",    "createdAt": "2019-08-24T14:15:22Z"  }}
OpenAPI specification
Was this page helpful?