Skip to main content
POST
/
super-agent
/
messages
Send Super Agent Message
curl --request POST \
  --url https://api.attention.tech/v2/super-agent/messages \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "session_id": "session-uuid-456",
  "content": "What were our Q1 revenue results?",
  "timezone": "America/New_York"
}
'
{
  "session_id": "session-uuid-456",
  "user_message": {
    "id": "msg-uuid-1",
    "session_id": "session-uuid-456",
    "content": "What were our Q1 revenue results?",
    "role": "user",
    "timestamp": "2024-03-18T14:30:00Z",
    "metadata": {}
  },
  "assistant_message": {
    "id": "msg-uuid-2",
    "session_id": "session-uuid-456",
    "content": "Based on the Q1 data, revenue targets were met at 105%.",
    "role": "assistant",
    "timestamp": "2024-03-18T14:30:05Z",
    "metadata": {}
  }
}

Authorizations

Authorization
string
header
required

Query Parameters

callback_url
string<uri>

Optional webhook URL to receive the assistant's response when processing completes

Body

content
string
required

The message content to send to the super agent

session_id
string

Optional session ID. If not provided, a new session will be created.

timezone
string

Optional user timezone for timestamp formatting (e.g., 'America/New_York')

Response

Message processed successfully with assistant response

session_id
string

The session ID

user_message
object
Example:
{
"id": "msg-uuid-123",
"session_id": "session-uuid-456",
"content": "Based on the Q1 data, revenue targets were met at 105%.",
"role": "assistant",
"timestamp": "2024-03-18T14:30:00Z",
"metadata": {}
}
assistant_message
object
Example:
{
"id": "msg-uuid-123",
"session_id": "session-uuid-456",
"content": "Based on the Q1 data, revenue targets were met at 105%.",
"role": "assistant",
"timestamp": "2024-03-18T14:30:00Z",
"metadata": {}
}