Agents

List the agents an API key can access, and read one agent.

GET
/api/v1/agents

List the agents this API key can access. Use the returned id in every per-agent endpoint. Requires the read:agents permission.

Authorization

BearerAuth read:agents
AuthorizationBearer <token>

In: header

Scope: read:agents

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/agents"
{
  "items": [
    {
      "id": "a1b2c3d4e5",
      "name": "Acme Support",
      "url": "https://acme.com",
      "status": "ready",
      "answerLanguage": "en",
      "createdAt": "2026-07-01T09:30:00.000Z"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
POST
/api/v1/agents

Create an agent for a website and train it on the whole site in the background, up to the plan's page limit. Poll GET /agents/{id}/training until training finishes. Keys limited to specific agents cannot create agents. Requires the write:agents permission.

Authorization

BearerAuth write:agents
AuthorizationBearer <token>

In: header

Scope: write:agents

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/agents" \  -H "Content-Type: application/json" \  -d '{    "websiteUrl": "https://acme.com",    "name": "Acme support"  }'
{
  "id": "string",
  "name": "string",
  "url": "string",
  "status": "training",
  "trainingRunId": "string",
  "trainingError": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
GET
/api/v1/agents/{id}

Read one agent by ID. Returns 404 when the agent does not exist or is not accessible to this key. Requires the read:agents permission.

Authorization

BearerAuth read:agents
AuthorizationBearer <token>

In: header

Scope: read:agents

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/agents/string"
{
  "id": "a1b2c3d4e5",
  "name": "Acme Support",
  "url": "https://acme.com",
  "status": "ready",
  "answerLanguage": "en",
  "createdAt": "2026-07-01T09:30:00.000Z"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
GET
/api/v1/agents/{id}/identity

The agent's Identity page: name, instructions, preset, guidelines, answer language, model, blocked words, and reply style, plus the valid options and limits. Requires the read:agents permission.

Authorization

BearerAuth read:agents
AuthorizationBearer <token>

In: header

Scope: read:agents

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/agents/string/identity"
{
  "agentId": "string",
  "name": "string",
  "instructions": "string",
  "preset": "string",
  "guidelines": [
    "string"
  ],
  "answerLanguage": "string",
  "model": {
    "id": "string",
    "label": "string"
  },
  "blockedWords": [
    "string"
  ],
  "replyStyle": {
    "enabled": true,
    "state": "string",
    "style": "string"
  },
  "options": {
    "presets": [
      "string"
    ],
    "answerLanguages": [
      "string"
    ],
    "models": [
      {
        "id": "string",
        "label": "string",
        "tier": "string"
      }
    ],
    "limits": {
      "instructionsChars": 0,
      "guidelines": 0,
      "guidelinesChars": 0
    }
  }
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
PATCH
/api/v1/agents/{id}/identity

Change only the fields you send. Send instructions or preset, not both. Lists can be replaced whole or edited with the add/remove fields (removal ignores capitals). Returns the saved settings. Requires the write:agents permission.

Authorization

BearerAuth write:agents
AuthorizationBearer <token>

In: header

Scope: write:agents

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/v1/agents/string/identity" \  -H "Content-Type: application/json" \  -d '{    "addGuidelines": [      "Never promise delivery dates"    ]  }'
{
  "agentId": "string",
  "name": "string",
  "instructions": "string",
  "preset": "string",
  "guidelines": [
    "string"
  ],
  "answerLanguage": "string",
  "model": {
    "id": "string",
    "label": "string"
  },
  "blockedWords": [
    "string"
  ],
  "replyStyle": {
    "enabled": true,
    "state": "string",
    "style": "string"
  },
  "options": {
    "presets": [
      "string"
    ],
    "answerLanguages": [
      "string"
    ],
    "models": [
      {
        "id": "string",
        "label": "string",
        "tier": "string"
      }
    ],
    "limits": {
      "instructionsChars": 0,
      "guidelines": 0,
      "guidelinesChars": 0
    }
  }
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "issues": [
    {
      "path": "string",
      "message": "string"
    }
  ]
}