OverviewProductsPlatformsAPI ReferenceResources
Messages

Delete a conversation label

DELETEhttps://zernio.com/api/v1/inbox/labels/{labelId}

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.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

labelIdstringRequired

Meta label id

Query parameters

accountIdstringRequired

Facebook social account ID

Responses

Success· the request worked

Errors· the request failed

DELETE/v1/inbox/labels/{labelId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.messages.deleteInboxLabel({  path: {    labelId: 'label_abc123',  },  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "success": true}
OpenAPI specification
Was this page helpful?