Deploy resource
POST
/v1/servers/{serverId}/deployHow to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| serverId | path | string | Yes | Resource ID |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| versionId | string | No | Exact published immutable Function version whose source and configuration must match the deployment. |
| releaseId | string | No | Optional evidence-gated Release Control record. When supplied, it must be deployment-ready and bound to this exact Function version. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Resource deployedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| server | object | No | — |
| server.id | string | No | Unique identifier. |
| server.userId | string | No | User ID. |
| server.organizationId | string | No | — |
| server.createdByUserId | string | No | — |
| server.projectId | string | No | Project ID. |
| server.name | string | No | Human-readable name. |
| server.description | string | No | Human-readable description. |
| server.kind | website | web_app | api | function | auth | agent_runtime | secrets | payments | No | — |
| server.sourceType | string | No | — |
| server.sourceEnvironmentId | string | No | — |
| server.sourcePath | string | No | Workspace-relative file path. |
| server.region | string | No | — |
| server.runtime | string | No | — |
| server.authMode | public | private | No | — |
| server.serviceUrl | string | No | — |
| server.customDomain | string | No | — |
| server.cloudRunServiceName | string | No | — |
| server.imageUrl | string | No | — |
| server.status | draft | deploying | deployed | failed | inactive | No | Current lifecycle status. |
| server.lastDeployedAt | string | No | — |
| server.metadata | object | No | Free-form metadata object. |
| server.createdAt | string | No | ISO 8601 timestamp. |
| server.updatedAt | string | No | ISO 8601 timestamp. |
| serviceUrl | string | No | — |
| invocationUrl | string | No | — |
| revision | string | No | — |
| deploymentType | string | No | — |
| deployment | object | No | — |
| deployment.id | string | No | Unique identifier. |
| deployment.at | string | No | — |
| deployment.outcome | success | failed | rollback | No | — |
| deployment.type | string | No | — |
| deployment.serviceName | string | No | — |
| deployment.region | string | No | — |
| deployment.revision | string | No | — |
| deployment.serviceUrl | string | No | — |
| deployment.imageUrl | string | No | — |
| deployment.runtime | string | No | — |
| deployment.authMode | string | No | — |
| deployment.sourceEnvironmentId | string | No | — |
| deployment.sourcePath | string | No | Workspace-relative file path. |
| deployment.connections | object | No | — |
| deployment.error | string | No | — |
| deployment.rolledBackToDeploymentId | string | No | — |
| deployment.versionBinding | object | No | — |
| deployment.versionBinding.schemaVersion | computer_agents_server_deployment_version_binding_v1 | Yes | — |
| deployment.versionBinding.versionId | string | Yes | — |
| deployment.versionBinding.versionNumber | integer | Yes | — |
| deployment.versionBinding.snapshotFingerprint | string | Yes | — |