Skip to main content
POST
/
procedures
POST /procedures
curl --request POST \
  --url https://api.operator.xyz/procedures \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Operator-Version: <operator-version>' \
  --data '{
  "agent_id": "<string>",
  "conversation_id": "<string>"
}'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Headers

Operator-Version
enum<string>
required

The API version to use.

Available options:
2025-06-19

Body

application/json
agent_id
string
required

The agent that should handle the procedure. Use pa_8qm9JBCiTe7 for the released version or pa_8qm9JBCiTe7@v2 for a specific version.

conversation_id
string
required

The conversation that should be used to create the procedure.

livemode
boolean
default:true

Whether the conversation should be created in live mode.

Response

Successful response.

id
string
required

Unique identifier for the procedure, e.g. trun_8qm9JBCiTe7.

I