Skip to main content
PUT
/
chats
/
{chat_id}
/
labels
Adds labels for the chat.
curl --request PUT \
  --url https://app.timelines.ai/integrations/api/chats/{chat_id}/labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "labels": [
    "label1",
    "label2",
    "label3"
  ]
}
'
{
  "status": "ok",
  "data": {
    "labels": [
      "label1",
      "label2",
      "label3"
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chat_id
integer
required

an id of the chat as appears in TimelinesAI (can be found in the URL of the chat page, or in the payload of outbound webhook). Supports sending messages to a group.

Body

application/json
labels
string[]
required
Example:
["label1", "label2", "label3"]

Response

Success

status
enum<string>
required
Available options:
ok,
error
Example:

"ok"

data
object
required