curl -sS "$BMA_BASE_URL/v1/agents/<agent_id>/versions" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"data": [
{
"id": "<string>",
"type": "agent",
"name": "<string>",
"description": "<string>",
"model": {},
"system": "<string>",
"tools": [
{}
],
"skills": [
{}
],
"mcp_servers": [
{}
],
"metadata": {},
"execution_identity": {},
"multiagent": null,
"version": 2,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"bma_harness": {},
"bma_requirements": {}
}
],
"next_page": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}Agents
List agent versions
Newest first; each item is the agent as it was at that version.
GET
/
v1
/
agents
/
{agent_id}
/
versions
curl -sS "$BMA_BASE_URL/v1/agents/<agent_id>/versions" \
-H "x-api-key: $BMA_API_KEY" \
-H "bma-workspace-id: $BMA_PROJECT_ID"{
"data": [
{
"id": "<string>",
"type": "agent",
"name": "<string>",
"description": "<string>",
"model": {},
"system": "<string>",
"tools": [
{}
],
"skills": [
{}
],
"mcp_servers": [
{}
],
"metadata": {},
"execution_identity": {},
"multiagent": null,
"version": 2,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z",
"bma_harness": {},
"bma_requirements": {}
}
],
"next_page": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "<string>",
"code": "<string>"
},
"request_id": "<string>"
}