OverviewProductsPlatformsAPI ReferenceResources

Update an iMessage sender

PATCHhttps://zernio.com/api/v1/imessage/senders/{senderId}

Display name (inbox and API responses) and the contact card (vCard) recipients see when they save the sender. The contact card is what a contactCard send shares.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

senderIdstringRequired

Body

application/json
Optional parameters2 fields
displayNamestring, max 100
contactobject
firstNamestring, max 64Required

Responses

Success· the request worked

Errors· the request failed

PATCH/v1/imessage/senders/{senderId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.imessage.updateImessageSender({  path: {    senderId: 'sender_abc123',  },  body: {    displayName: 'Example',    contact: {      firstName: 'Example',    },  },});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?