Skip to main content
POST
Create BYO Agent

Authorizations

apikey
string
header
required

API Key (i.e. Rest API Key from the Dashboard).

Headers

chatApiVersion
string
default:v3.0

Chat API version. Defaults to v3.0.

Body

application/json
name
string
required

Name of the agent

Example:

"My Mastra Agent"

icon
string<url>
required

URL to the icon/avatar of the agent

integrateWith
enum<string>
required

Integration platform identifier

Available options:
mastra
integrationType
enum<string>
required

Type of connection

Available options:
agent
isActive
boolean
default:true

Whether the agent is active

integrationMeta
object

Mastra-specific configuration

tools
string[]

List of tool names (must exist in the app's tools)

actions
string[]

List of action names (must exist in the app's actions)

metaData
object

Metadata for the agent

Response

200 - application/json

Agent created successfully

agent
object