OverviewProductsPlatformsAPI ReferenceResources

Add an iMessage sandbox contact

POSThttps://zernio.com/api/v1/imessage/sandbox/contacts

Adds your own phone (E.164) or Apple ID email. The contact starts as pending; it becomes active when its joinText arrives at the sandbox line from that handle (joinLink opens Messages with it prefilled). Adding a handle that is already on your list returns it unchanged.

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

handlestringRequired

Phone in international format (+15551234567) or an Apple ID email

Responses

Success· the request worked

Errors· the request failed

POST/v1/imessage/sandbox/contacts
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.imessage.addImessageSandboxContact({  body: {    handle: 'string',  },});console.log(data);
{  "contact": {    "id": "string",    "handle": "string",    "status": "pending",    "joinText": "string",    "joinLink": "string",    "activatedAt": "2019-08-24T14:15:22Z",    "lastInboundAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z"  }}
OpenAPI specification
Was this page helpful?