Create resource
POST
/v1/serversCreate a managed resource such as a web app, function, auth module, or agent runtime.
How 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
None.
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| projectId | string | No | Optional project that owns this resource. |
| name | string | Yes | Human-readable resource name. |
| description | string | No | Description of the resource and what it serves. |
| kind | web_app | function | auth | agent_runtime | Yes | Resource type to provision. |
| sourceType | string | No | Source backing the resource, such as an environment workspace. |
| sourceEnvironmentId | string | No | Source computer used for builds or runtime code. |
| sourcePath | string | No | Relative source path inside the connected computer. |
| region | string | No | Deployment region. |
| runtime | string | No | Runtime identifier used by the resource. |
| authMode | public | private | No | Access mode for the deployed endpoint. |
| serviceUrl | string | No | Existing service URL if managed externally. |
| customDomain | string | No | Custom domain bound to the resource. |
| cloudRunServiceName | string | No | Backing Cloud Run service name when applicable. |
| imageUrl | string | No | Container image reference for runtime resources. |
| status | draft | deploying | deployed | failed | inactive | No | Initial or desired lifecycle status. |
| lastDeployedAt | string | No | — |
| metadata | object | No | Additional resource metadata. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Resource createdapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| server | object | No | — |
| server.id | string | No | Unique identifier. |
| server.userId | string | No | User ID. |
| server.projectId | string | No | Project ID. |
| server.name | string | No | Human-readable name. |
| server.description | string | No | Human-readable description. |
| server.kind | web_app | function | auth | agent_runtime | 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. |