Zernio
APIFor you
Zernio
APIFor you
API Reference

Messages

Conversations

List conversationsGETSearch conversationsGETCreate conversationPOSTGet conversationGETUpdate conversation statusPUTMark a conversation as readPOSTChange who answers a conversation (handover)POST

Messages

List messagesGETSend messagePOSTEdit messagePATCHDelete messageDELETEUpload media filePOSTResolve message attachmentGET

Reactions & Typing

Add reactionPOSTRemove reactionDELETESend typing indicatorPOST

Other

Accept a message requestPOSTAdd a label to a conversationPOSTCreate a conversation labelPOSTDelete conversationDELETEDelete a conversation labelDELETEList the labels on a conversationGETList the Page's conversation labelsGETRemove a label from a conversationDELETE
Dashboard
OverviewPlatformsAPI ReferenceResources
Messages

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.


GET
/v1/inbox/conversations/{conversationId}/labels

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

conversationId*string

Conversation ID (Zernio id or Meta platform conversation id)

Query Parameters

accountId*string

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.listConversationLabels({  path: {    conversationId: 'conversation_abc123',  },  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "labels": [    {      "id": "string",      "name": "string"    }  ]}
Was this page helpful?

Delete a conversation label

Facebook Messenger only. Deletes a custom label from the Page (Graph `DELETE /{label-id}`), which also removes it from every conversation. The id must be one of the Page's custom labels, otherwise 404 `resource_not_found`. Other platforms answer 400 `platform_not_supported`.

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`.