Agent Definitions
Register, version, validate, and manage native agent definitions within a workspace.
Key Concepts
Supported Frameworks
Permissions
Register a Definition
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Stable slug identifying this definition within the workspace.
^[a-z0-9][a-z0-9-]*[a-z0-9]$Successful Response
False when an identical body was already registered (idempotent push).
Validation Error
POST /v1/{workspace_id}/agent-definitions HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"name": "text",
"body": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"definition_id": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"created": true,
"framework": "claude-agent-sdk",
"has_write_tools": true,
"agent_count": 1,
"body_sha256": "text"
}Validate a Definition
Dry-run clamp validation — nothing is stored. 422 with the offending paths on failure (the same shape push returns).
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Stable slug identifying this definition within the workspace.
^[a-z0-9][a-z0-9-]*[a-z0-9]$Successful Response
Validation Error
POST /v1/{workspace_id}/agent-definitions/validate HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"name": "text",
"body": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}{
"valid": true,
"framework": "claude-agent-sdk",
"has_write_tools": true,
"agent_count": 1
}List Definitions
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
false50Successful Response
Validation Error
GET /v1/{workspace_id}/agent-definitions HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"definition_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"framework": "claude-agent-sdk",
"status": "active"
}
],
"has_more": true,
"continuation_token": null
}Get a Definition
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Validation Error
GET /v1/{workspace_id}/agent-definitions/{definition_id} HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"definition_id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"framework": "claude-agent-sdk",
"status": "active",
"versions": [
{
"version": 1,
"body_sha256": "text",
"validator_rev": "text",
"has_write_tools": true,
"agent_count": 1
}
]
}Get a Definition Version
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
Validation Error
GET /v1/{workspace_id}/agent-definitions/{definition_id}/versions/{version} HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"version": 1,
"body_sha256": "text",
"validator_rev": "text",
"has_write_tools": true,
"agent_count": 1,
"definition_id": "123e4567-e89b-12d3-a456-426614174000",
"framework": "claude-agent-sdk",
"body": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Archive a Definition
API key issued via POST /v1/{workspace_id}/api-keys. Pass the returned api_key value as a Bearer token.
Successful Response
No content
Validation Error
DELETE /v1/{workspace_id}/agent-definitions/{definition_id} HTTP/1.1
Host: api.platform.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?

