Agents API

Manage agent definitions including protocols and prompts.

List Agents

Get all agents in the project.

text

Response

json

Example

bash

Get Agent

Get a single agent by ID or slug.

text

Response

json

Example

bash

Create Agent

Create a new agent.

text

Request Body

json
FieldTypeRequiredDescription
settings.slugstringYesURL-safe identifier
settings.namestringYesDisplay name
settings.descriptionstringNoAgent description
settings.formatstringYesinteractive or generation
protocolstringYesYAML protocol definition
promptsarrayYesPrompt files

Response

json

Example

bash

Update Agent

Update an existing agent.

text

Request Body

json

All fields are optional. Only provided fields are updated.

Response

json

Example

bash

Sync Agent

The Server SDK provides a sync method that creates or updates an agent:

typescript

This is useful for CI/CD pipelines to deploy agent updates.