Contacts
List channels for a contact
Returns all messaging channels linked to a contact (e.g. Instagram DM, Telegram, WhatsApp).
Authorization
bearerAuth AuthorizationBearer <token>
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
contactId*string
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.contacts.getContactChannels({ path: { contactId: 'contact_abc123', },});console.log(data);{ "success": true, "channels": [ { "id": "string", "accountId": "string", "platform": "string", "platformIdentifier": "string", "displayIdentifier": "string", "isSubscribed": true, "conversationId": "string", "metadata": {}, "createdAt": "2019-08-24T14:15:22Z" } ]}Was this page helpful?