Agent
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
DELETE | |
GET | |
GET |
List all agent applications users
List this agent's end-users (the stable identities behind inbound principals) and each user's linked external connections. Connection metadata only — credential material is never returned.
Required API key scopes
agents:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /agent_applications /:id /usersExample response
Status 200
Delete agent applications users connection
Revoke one of an end-user's linked connections. The credential is marked revoked (kept for audit), so the agent can no longer act as that user on the provider.
Required API key scopes
agents:writePath parameters
- agent_user_idstring
- idstring
- providerstring
Example request
DELETE /api /projects /:project_id /agent_applications /:id /users /:agent_user_id /connections /:providerExample response
Status 204 No response body
Retrieve agent applications
Served-model catalog — each model's id, provider, context window, and USD-per-million-token pricing — plus the curated auto-level → model map. Project-agnostic; sourced from the AI gateway catalog. Powers the config UI model browser and the agent builder's model-choosing skill.
Required API key scopes
agents:readResponse
Example request
GET /api /projects /:project_id /agent_applications /modelsExample response
Status 200
Retrieve agent applications spec
The canonical JSON Schema for an agent spec — every field, type, enum, default, and the discriminated unions for models / triggers[] / tools[], each with an inline description. Emitted from the same source the runner validates against (fields with a default are optional on write), so read it BEFORE composing a spec for create / revisions-spec-update instead of guessing the shape. Pass section to fetch just one part.
Required API key scopes
agents:readQuery parameters
- sectionstring
Response
Example request
GET /api /projects /:project_id /agent_applications /spec_schema