Skip to main content
POST
/
api
/
autopilots
Create an autopilot resource.
curl --request POST \
  --url https://openagents.com/api/autopilots \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "avatar": "<string>",
  "displayName": "EP212 Bot",
  "handle": "ep212-bot",
  "status": "active",
  "tagline": "<string>",
  "visibility": "private"
}
'
{
  "data": {
    "avatar": "<string>",
    "configVersion": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "displayName": "<string>",
    "handle": "<string>",
    "id": "<string>",
    "ownerUserId": 123,
    "status": "<string>",
    "tagline": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z",
    "visibility": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Create an autopilot resource.

avatar
string | null
Maximum string length: 255
displayName
string | null
Maximum string length: 120
Example:

"EP212 Bot"

handle
string | null
Maximum string length: 64
Example:

"ep212-bot"

status
string | null
Example:

"active"

tagline
string | null
Maximum string length: 255
visibility
string | null
Example:

"private"

Response

Autopilot resource payload

data
object