Skip to main content
POST
/
chats
/
{chat_id}
/
voice_message
cURL
curl --request POST \
  --url https://app.timelines.ai/integrations/api/chats/{chat_id}/voice_message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "status": "ok",
  "data": {
    "message_uid": "<string>"
  }
}

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

multipart/form-data

The body of request in multipart/form-data format, containing the audio file in 'ogg', 'oga', 'mp3' formats, to be sent as an audio message.

file
file
required

A file content in binary format.

Response

Success

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

"ok"

data
object
required