Get a Label
GET/accounts/:account_id/labels/:label_id
Retrieve one label definition of the account.
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/labels/{label_id} |
| Authorization | User token. Legacy: administrator. New rules: Labels → read. Not available to agent-bot tokens. |
Unlike List Labels, which any agent may call, this endpoint needs the permission above.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
label_id | integer | Yes | Label ID. |
Example request
curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/labels/15' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'
Example response (200 OK)
{
"id": 15,
"title": "vip",
"description": "High-value customers",
"color": "#ff6b6b",
"show_on_sidebar": true
}
Error responses: 404 {"error": "Resource could not be found"}.
Request
Responses
- 200
- 401
- 403
- 404
The label.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.