OverviewProductsPlatformsAPI ReferenceResources
Messages

Create a conversation label

POSThttps://zernio.com/api/v1/inbox/labels

Facebook Messenger only. Creates a custom label on the Page (Graph POST /{page-id}/custom_labels). Other platforms answer 400 platform_not_supported.

Authentication

AuthorizationBearer tokenRequired

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

Body

application/json

What every request needs

accountIdstringRequired

Facebook social account ID

namestringRequired

Label name

Responses

Success· the request worked

Errors· the request failed

POST/v1/inbox/labels
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.messages.createInboxLabel({  body: {    accountId: 'account_abc123',    name: 'Example',  },});console.log(data);
{  "label": {    "id": "string",    "name": "string"  }}
OpenAPI specification
Was this page helpful?