Skip to main content
POST
/
agents
/
{agent_id}
/
publish
Publish agent version
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/publish \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "increment": "minor",
  "notes": "Added KYC verification step"
}
'
{
  "data": {
    "version": "1.3.0",
    "agent_id": 101,
    "notes": "Added KYC verification step",
    "date_created": 1706200000
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required

Body

application/json
increment
string
notes
string

Response

201 - application/json

Publish agent version.

data
object

An immutable snapshot of an agent's configuration at a point in time.