Config
Versioned agent configuration. Store and version agent configurations with rollback support. Anchor enforces the policies section, but you can store any other configuration fields you need.
Get Config
Endpoint: GET /v1/config/:agent_id
Get the current configuration for an agent.
Update Config
Endpoint: PUT /v1/config/:agent_id
Update agent configuration. Creates a new version.
Request
PUT /v1/config/:agent_id
Content-Type: application/json
X-API-Key: your-api-key
{
"instructions": "You are a helpful assistant",
"model": "gpt-4",
"policies": {
"block_pii": true,
"block_secrets": true,
"retention_days": 90
}
}List Versions
Endpoint: GET /v1/config/:agent_id/versions
List all configuration versions for an agent.
Get Version
Endpoint: GET /v1/config/:agent_id/versions/:version
Get a specific configuration version.
Rollback Config
Endpoint: POST /v1/config/:agent_id/rollback
Rollback to a previous configuration version.
Request
POST /v1/config/:agent_id/rollback
Content-Type: application/json
X-API-Key: your-api-key
{
"version": "v1"
}