Skip to main content
POST
Send Superagent message

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>.

Path Parameters

conversation_id
string
required

ID of the conversation to send the message to. Get it from Create Superagent conversation or List Superagent conversations.

agent_id
string
required

ID of the Superagent. It's the agent's app ID, shown in the agent's developer settings.

Body

application/json
content
string
required

Text of your message to the agent.

Example:

"Summarize today's sales."

file_urls
string[]

URLs of files to attach to the message, such as a spreadsheet for the agent to read.

Example:

Response

The agent's reply.

A message in a Superagent conversation.

id
string
required

ID of the message.

Example:

"3f2504e0-4f89-41d3-9a0c-0305e82c3301"

role
enum<string>
required

Who wrote the message. Either user or assistant.

Available options:
user,
assistant
Example:

"assistant"

content
string | null
required

Text of the message, or null when the message only carries tool calls.

Example:

"Here's a summary of today's sales."

metadata
SuperagentMessageMetadata · object
required

When the message was created.

file_urls
string[] | null

URLs of files attached to the message, or null when it has none.

Example:
tool_calls
SuperagentToolCall · object[] | null

Tools the agent called while writing the message, or null when it called none.

Example: