---
title: "Create a conversation label"
method: POST
path: "/v1/inbox/labels"
tags: ["Messages"]
---

# Create a conversation label

`POST /v1/inbox/labels`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/inbox/labels`
- Auth: HTTP bearer

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

## Request body

- object
  - `accountId` string, required: Facebook social account ID
  - `name` string, required: Label name

## Response `201`

Label created

- object
  - `label` object
    - `id` string: Meta label id
    - `name` string

## Other responses

- `400`: Invalid body, or an account that is not Facebook (platform_not_supported), or Meta refusing for good (platform_api_error with Meta's error_user_title and error_user_msg in the message, e.g. the Page has not accepted the label privacy terms, subcode 2018344, in platformError). A transient Meta failure answers 502
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `403`: Inbox addon required
- `404`: Account not found
- `422`: No Facebook Page is selected on this account (linked_account_required); reconnect it and select the Page

## Changes

- **2026-10-25** `c07933f7aec9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/inbox/labels/post.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/870c96025f19?raw)
