---
title: "POST /projects/{projectId}/agent-deployments"
method: POST
path: "/projects/{projectId}/agent-deployments"
---

# POST /projects/{projectId}/agent-deployments

`POST /projects/{projectId}/agent-deployments`

## Request

- Base URL: `https://api.caveman.so/api/v1`
- URL: `https://api.caveman.so/api/v1/projects/{projectId}/agent-deployments`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/api/v1/oauth/authorize`
    - Token URL: `/api/v1/oauth/token` scopes: `autopilot:manage`
  - HTTP bearer
  - API key in cookie `cave_access`
  - API key in cookie `__Secure-cave_identity.session_token`

POST /api/v1/projects/{projectId}/agent-deployments on the Caveman Cloud control plane. Requires the autopilot:manage scope. Not exposed to autonomous agents: Native user registration of immutable deployment source identity; requires autopilot:manage and repo:connect. Model and workload callers cannot mint deployment attribution. Native user endpoint. Scoped agent sessions and workload credentials cannot call this operation. Organization budget edits additionally require billing:write. Interactive grants bind current membership and role; input, audit, run and outbox admission commit atomically. Reuse the same request identity, input and deadline on retries.

## Request body

- AgentDeploymentRegistration
  - `deployment_id` string, required
  - `binding_id` string, uuid, required
  - `commit_sha` string, required
  - `image_sha256` string
  - `config_sha256` string

## Response `200`

Native operation persisted.

- AgentDeployment
  - `deployment_id` string, required
  - `binding_id` string, uuid, required
  - `repository_id` string, required
  - `commit_sha` string, required
  - `image_sha256` string, required
  - `config_sha256` string, required
  - `created_at` string, date-time, required

## Other responses

- `400`: Invalid or missing explicit configuration/input.
- `401`: Authentication required.
- `403`: Native user lacks authority.
- `404`: Requested resource or current authority unavailable.
- `409`: Revision/input conflict or budget unavailable.
- `503`: Shared agent execution unavailable.
- `4XX`: Structured failure. `error.code` is stable; `error.request_id` is echoed in the x-cave-request-id header.
- `5XX`: Structured failure. `error.code` is stable; `error.request_id` is echoed in the x-cave-request-id header.

---

[API](https://skmtc.dev/caveman/apis/caveman-cloud-api.md) - [All operations](https://skmtc.dev/caveman/apis/caveman-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/caveman/apis/caveman-cloud-api/revisions/508312d01cfc?raw)
