data_warehouse

Start provisioning a managed warehouse for this organization (shared by all its teams).

post/api/projects/{project_id}/data_warehouse/provision/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/data_warehouse/provision/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

database_namestring required

Name for the new database

schema_namestring required

Schema name for the provisioning project's data in the warehouse. Lowercase letters, numbers, and underscores only, max 63 characters. Cannot be changed later. Required — the first project gets its own schema, and other projects pick theirs when they join.

Response

statusstring required

Provisioning lifecycle message, e.g. 'provisioning started'

orgstring required

duckgres org identifier (the PostHog organization id)

usernamestring required

Root database username

passwordstring required

Root database password — returned only here at provision time and on reset-password

Changes

No recorded changes to this operation across all 1 revision of this API.