Skip to main content

Version History

Returns the full version history for an agent, including build IDs, deployment IDs, and rollback metadata.

GET /api/v1/agents/{agent_id}/versions — 🔒 Requires Auth

Path Parameters

ParameterDescription
agent_idAgent UUID

Examples

curl https://nasiko.dev/api/v1/agents/agent-abc123/versions \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Response

{
"agent_id": "agent-abc123",
"current_version": "1.1.0",
"versions": [
{
"version": "1.1.0",
"status": "active",
"created_at": "2026-03-06T12:00:00Z",
"build_ids": ["build-def456"],
"deployment_ids": ["deploy-ghi789"],
"git_commit": "abc123def456"
},
{
"version": "1.0.0",
"status": "inactive",
"created_at": "2026-03-01T10:00:00Z",
"build_ids": ["build-abc123"],
"deployment_ids": ["deploy-def456"]
}
],
"status_code": 200,
"message": "Version history retrieved"
}