contacts
Get contact
Returns a contact with all associated messaging channels.
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.getContact({ path: { contactId: 'contact_abc123', },});console.log(data);{
"success": true,
"contact": {
"id": "string",
"name": "string",
"email": "string",
"company": "string",
"avatarUrl": "string",
"tags": [
"string"
],
"isSubscribed": true,
"isBlocked": true,
"customFields": {},
"notes": "string",
"conversationIds": [
"string"
],
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
},
"channels": [
{
"id": "string",
"accountId": "string",
"platform": "string",
"platformIdentifier": "string",
"displayIdentifier": "string",
"isSubscribed": true,
"conversationId": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
]
}{
"error": "Unauthorized"
}{
"error": "Not found"
}