Skip to main content
POST
/
messages
/
to_chat_name
Error
A valid request URL is required to generate request examples
{
  "status": "ok",
  "data": {
    "message_uid": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://timelines.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Deprecated — This endpoint will be removed in a future release. Use Send Message to Chat with chat_id or Send Message to Phone instead.

Authorizations

Authorization
string
header
required

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

Body

application/json

A JSON describing recipient and message payload.

chat_name
string
required

an exact name of the chat (or group) as appears in TimelinesAI)

Example:

"MyChat"

reply_to
string | null

UID of the message this message replies to. Must reference a message in the same workspace and WhatsApp account. Null or empty string is ignored.

text
string

plain text message

Example:

"hello, world!"

file_uid
string

attachment UID

Example:

"afa9d4dd-978d-4a14-aa1b-bd65c272e645"

label
string

assign label to the chat, in which the message is sent (create new label, if not exists)

Example:

"customer"

attachment_template_id
integer

a template ID of the attachment to be sent. The template must be created in the workspace before sending a message with it.

Example:

123456

Response

Success

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

"ok"

data
object
required