[GET] Call Personalisation Label

Previously created dynamic labels can be fetched by hitting the below API endpoint.

List Dynamic Labels

This endpoint returns all dynamic labels under a client. It supports pagination. It will return an empty array if no labels are found.

GET/clients/{clientAccountId}/labels
Authorization
Path parameters
clientAccountId*string (uuid)

This should be the clientAccountId

Query parameters
Header parameters
Response
Body
categoryinteger (int64)
client_account_idstring
created_atstring (date-time)
created_by_emailstring
deleted_atstring (date-time)
idstring
label_typestring
logo_urlstring
namestring
sub_categoryinteger (int64)
updated_atstring (date-time)
Request
const response = await fetch('/clients/{clientAccountId}/labels', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "client_account_id": "text",
    "created_at": "2024-09-15T00:50:51.538Z",
    "created_by_email": "text",
    "deleted_at": "2024-09-15T00:50:51.538Z",
    "id": "text",
    "label_type": "text",
    "logo_url": "text",
    "name": "text",
    "updated_at": "2024-09-15T00:50:51.538Z"
  }
]

Last updated

© 2024 Truecaller AB