Skip to main content
POST
/
api
/
autopilots
/
{autopilot}
/
threads
Create a new thread for an autopilot.
curl --request POST \
  --url https://openagents.com/api/autopilots/{autopilot}/threads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "New autopilot conversation"
}
'
{
  "data": {
    "autopilotId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "title": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

autopilot
string
required

Body

application/json

Create a new thread for an autopilot.

title
string | null
Maximum string length: 200
Example:

"New autopilot conversation"

Response

Autopilot thread payload

data
object