Skip to main content
DELETE
Delete a chat.

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.

Query Parameters

unsync
boolean
default:false

Defaults to false. false: the chat is deleted and will reappear when a new message is received. true: the chat is deleted and will not reappear in the system. New messages will not be processed. This does not prevent starting the chat again by sending an outbound message.

Response

Success. The chat is deleted

message
string
required

Human-readable confirmation of the completed action

Example:

"Invitation revoked successfully"

status
enum<string>
required

Result status

Available options:
ok,
error
Example:

"ok"