Skip to main content
POST
Create Superagent

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Name of the agent. Leading and trailing spaces are removed.

Required string length: 1 - 100
Example:

"Sales assistant"

description
string | null

Short description of what the agent is for.

Maximum string length: 2000
Example:

"Answers questions about our weekly sales."

logo_url
string | null

URL of the agent's logo image.

Maximum string length: 2000
Example:

"https://cdn.acme.com/sales-assistant.png"

Response

The new agent.

id
string
required

ID of the agent. Use it as agent_id in the other Superagent endpoints, such as Create Superagent conversation.

Example:

"6820f3a4e7b91d003c45a1f2"

name
string
required

Name of the agent.

Example:

"Sales assistant"

description
string | null

Description of the agent, or null if none was set.

Example:

"Answers questions about our weekly sales."

logo_url
string | null

URL of the agent's logo, or null if none was set.

Example:

"https://cdn.acme.com/sales-assistant.png"