Skip to main content

Concept

The Messages group provides direct access to individual messages by their unique identifier — without needing to know which conversation they belong to. These endpoints are useful in scenarios where you already have the message_id at hand (for example, received via webhook) and need to fetch the full details or remove the message. To list messages within the context of a specific conversation, use the endpoints from the Conversations or Chats groups, which offer pagination and conversation-based filters.

Message Structure

A message in Timely.ai represents any unit of communication exchanged in a conversation: text, image, audio, video, document, or interactive message (buttons, lists). Each message records the sender (contact, AI agent, or human), the source channel, delivery status, and platform metadata (such as the WhatsApp wamid or Telegram message_id).

Main Fields

FieldTypeDescription
idstring (UUID)Unique message ID in Timely
conversation_idstring (UUID)Conversation it belongs to
channel_idstring (UUID)Channel through which it was sent/received
contentstringText content of the message
typeenumtext | image | audio | video | document | interactive
directionenuminbound (customer → agent) | outbound (agent → customer)
sender_typeenumcontact | agent | human
sender_idstring (UUID)Sender ID
statusenumsent | delivered | read | failed
media_urlstringMedia URL (for messages with attachments)
external_idstringExternal message ID from the source platform
metadataobjectAdditional platform data (wamid, etc.)
created_atstringISO 8601 creation timestamp

When to Use Messages vs Conversations vs Chats

ScenarioRecommended group
Fetch a specific message by IDMessages
List the full history of a conversationConversations
Send a message as a human agentChats
Analyze conversations in bulkConversations
React to a webhook event with a message_idMessages

Available Endpoints

See the left sidebar for the full list of endpoints in this group. Each endpoint has its own page with request/response schema, cURL/JS/Python examples, and an interactive playground.

Next Steps

Your first request

If you haven’t made your first call yet, start here.