Create database
POST
/v1/databasesCreate a managed Firestore-backed database surface.
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 database. |
| name | string | Yes | Human-readable database name. |
| description | string | No | Description of the data stored here. |
| location | string | No | Deployment location or region, for example `eur3`. |
| metadata | object | No | Additional database metadata. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
201Database createdapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| database | object | No | — |
| database.id | string | No | Unique identifier. |
| database.userId | string | No | User ID. |
| database.projectId | string | No | Project ID. |
| database.name | string | No | Human-readable name. |
| database.description | string | No | Human-readable description. |
| database.provider | firestore | No | — |
| database.location | string | No | — |
| database.status | active | provisioning | error | No | Current lifecycle status. |
| database.firestoreNamespace | string | No | — |
| database.metadata | object | No | Free-form metadata object. |
| database.createdAt | string | No | ISO 8601 timestamp. |
| database.updatedAt | string | No | ISO 8601 timestamp. |