v1
latestOpenAPI 3.0.02026-08-04891301.4 MBProvision a computer for an agent
Creates and provisions a new computer resource associated with the specified agent. The computer is allocated in the requested region (defaulting to iad) and its status transitions from provisioning to running once it is ready.
Requires an app-scoped API key. The agent identified by agent must belong to the same app. Supplying a lookup_key lets you retrieve this computer later without storing its ID — the key must be unique within the app.
post/api/v1/agents/{agent}/agent_computers
Path parameters
agentstring required
Agent ID (agt_...). The computer is associated with this agent.
Request body
Example request
{
"config": {},
"lookup_key": "string",
"metadata": {
"key": "value"
},
"name": "Example Name",
"region": "string"
}Response
Successful response
Example response
{
"agent": "agi_0aBcDeFgHiJkLmNoPqRsTu",
"app": "dap_0aBcDeFgHiJkLmNoPqRsTu",
"config": {
"key": "value"
},
"created_at": "2024-01-01T00:00:00Z",
"error_message": "string",
"id": "cmp_0aBcDeFgHiJkLmNoPqRsTu",
"last_active_at": "2024-01-01T00:00:00Z",
"lookup_key": "main-computer",
"metadata": {
"key": "value"
},
"name": "Example Name",
"region": "us-east-1",
"sprite_url": "https://example.com",
"status": "ready",
"updated_at": "2024-01-01T00:00:00Z"
}