Skip to main content

Get a Label

GET 

/accounts/:account_id/labels/:label_id

Retrieve one label definition of the account.

SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/labels/{label_id}
AuthorizationUser 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

NameTypeRequiredDescription
account_idintegerYesAccount ID.
label_idintegerYesLabel 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​

The label.