contacts
List channels for a contact
Returns all messaging channels linked to a contact (e.g. Instagram DM, Telegram, WhatsApp).
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
contactIdstring
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"
}
]
}{
"error": "Unauthorized"
}{
"error": "Not found"
}