Skip to main content
POST
/
v0
/
messages
curl --request POST \
  --url 'https://api.unify.ai/v0/messages' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "assistant_id": 42,
    "message": "Add milk to my shopping list."
}'
{
    "info": "object"
}
Send a programmatic message to an assistant. Returns a message_id that can be polled via GET /messages/ for the response.

Authorizations

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

Body

assistant_id
integer
required
The ID of the assistant to send the message to.
message
string
required
The message content.
tags
[string]
Optional tags for routing and context (e.g. [‘source:slack’, ‘channel:#general’]).
attachments
[Any]
File attachments previously uploaded via POST /messages/attachments.
curl --request POST \
  --url 'https://api.unify.ai/v0/messages' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "assistant_id": 42,
    "message": "Add milk to my shopping list."
}'
{
    "info": "object"
}