v1
latestOpenAPI 3.1.02026-08-04151221521.2 KBBranches
Agents
Deploy Agent
Deploy an agent to the platform.
Called by CLI after pushing the container image to the registry.
Creates or updates agent, branch, and version records.
The deployment is asynchronous - poll GET /branches/{branch_id}
for status updates until status is READY or FAILED.
**Flow:**
1. CLI builds and pushes image to registry (using /registry/auth)
2. CLI calls POST /agents/deploy with image details
3. Platform creates records and triggers K8s deployment
4. Container starts and calls POST /versions/register
5. CLI polls GET /branches/{id} for status
post/agents/deploy
Request body
Response
Successful Response