Create AI chat app template
POST
/v1/servers/templates/ai-chat-appProvision an AI chat app stack including web app, auth, database, and agent runtime resources.
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 |
|---|---|---|---|
| name | string | Yes | Human-readable name. |
| title | string | No | Display title. |
| description | string | No | Human-readable description. |
| projectId | string | No | Project ID. |
| region | string | No | — |
| location | string | No | — |
| authMode | public | private | No | — |
| agentId | string | Yes | Agent ID. |
| environmentId | string | Yes | Computer ID. |
| executionMode | sync | async | No | — |
| streamingEnabled | boolean | No | — |
| maxRuntimeSeconds | integer | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Template stack createdapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| template | string | No | — |
| webApp | object | No | — |
| webApp.id | string | No | Unique identifier. |
| webApp.userId | string | No | User ID. |
| webApp.projectId | string | No | Project ID. |
| webApp.name | string | No | Human-readable name. |
| webApp.description | string | No | Human-readable description. |
| webApp.kind | web_app | function | auth | agent_runtime | No | — |
| webApp.sourceType | string | No | — |
| webApp.sourceEnvironmentId | string | No | — |
| webApp.sourcePath | string | No | Workspace-relative file path. |
| webApp.region | string | No | — |
| webApp.runtime | string | No | — |
| webApp.authMode | public | private | No | — |
| webApp.serviceUrl | string | No | — |
| webApp.customDomain | string | No | — |
| webApp.cloudRunServiceName | string | No | — |
| webApp.imageUrl | string | No | — |
| webApp.status | draft | deploying | deployed | failed | inactive | No | Current lifecycle status. |
| webApp.lastDeployedAt | string | No | — |
| webApp.metadata | object | No | Free-form metadata object. |
| webApp.createdAt | string | No | ISO 8601 timestamp. |
| webApp.updatedAt | string | No | ISO 8601 timestamp. |
| auth | object | No | — |
| auth.id | string | No | Unique identifier. |
| auth.userId | string | No | User ID. |
| auth.projectId | string | No | Project ID. |
| auth.name | string | No | Human-readable name. |
| auth.description | string | No | Human-readable description. |
| auth.kind | web_app | function | auth | agent_runtime | No | — |
| auth.sourceType | string | No | — |
| auth.sourceEnvironmentId | string | No | — |
| auth.sourcePath | string | No | Workspace-relative file path. |
| auth.region | string | No | — |
| auth.runtime | string | No | — |
| auth.authMode | public | private | No | — |
| auth.serviceUrl | string | No | — |
| auth.customDomain | string | No | — |
| auth.cloudRunServiceName | string | No | — |
| auth.imageUrl | string | No | — |
| auth.status | draft | deploying | deployed | failed | inactive | No | Current lifecycle status. |
| auth.lastDeployedAt | string | No | — |
| auth.metadata | object | No | Free-form metadata object. |
| auth.createdAt | string | No | ISO 8601 timestamp. |
| auth.updatedAt | string | No | ISO 8601 timestamp. |
| database | object | No | — |
| database.id | string | No | Unique identifier. |
| database.name | string | No | Human-readable name. |
| database.location | string | No | — |
| database.status | string | No | Current lifecycle status. |
| agentRuntime | object | No | — |
| agentRuntime.id | string | No | Unique identifier. |
| agentRuntime.userId | string | No | User ID. |
| agentRuntime.projectId | string | No | Project ID. |
| agentRuntime.name | string | No | Human-readable name. |
| agentRuntime.description | string | No | Human-readable description. |
| agentRuntime.kind | web_app | function | auth | agent_runtime | No | — |
| agentRuntime.sourceType | string | No | — |
| agentRuntime.sourceEnvironmentId | string | No | — |
| agentRuntime.sourcePath | string | No | Workspace-relative file path. |
| agentRuntime.region | string | No | — |
| agentRuntime.runtime | string | No | — |
| agentRuntime.authMode | public | private | No | — |
| agentRuntime.serviceUrl | string | No | — |
| agentRuntime.customDomain | string | No | — |
| agentRuntime.cloudRunServiceName | string | No | — |
| agentRuntime.imageUrl | string | No | — |
| agentRuntime.status | draft | deploying | deployed | failed | inactive | No | Current lifecycle status. |
| agentRuntime.lastDeployedAt | string | No | — |
| agentRuntime.metadata | object | No | Free-form metadata object. |
| agentRuntime.createdAt | string | No | ISO 8601 timestamp. |
| agentRuntime.updatedAt | string | No | ISO 8601 timestamp. |
| collections | object[] | No | — |
| files | object[] | No | — |