List the Page's conversation labels
Facebook Messenger only. Lists the custom labels defined on the Page (Graph /{page-id}/custom_labels). Other platforms answer 400 platform_not_supported.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Query Parameters
Facebook social account ID
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.messages.listInboxLabels({ query: { accountId: 'account_abc123', },});console.log(data);{ "labels": [ { "id": "string", "name": "string" } ]}List the labels on a conversation
Facebook Messenger only. Lists the Page's custom labels applied to the person in this conversation (Graph `/{psid}/custom_labels`). Other platforms answer 400 `platform_not_supported`.
Remove a label from a conversation
Facebook Messenger only. Removes one of the Page's custom labels from the person in this conversation (Graph `DELETE /{label-id}/label?user={psid}`). The label itself stays on the Page. The id must be one of the Page's custom labels, otherwise 404 `resource_not_found`. Other platforms answer 400 `platform_not_supported`.