Data

For instructions on how to authenticate to use this endpoint, see API overview.

Endpoints

GET

Retrieve data warehouse warehouse status

Get the current provisioning status of the managed warehouse, with this project's onboarding state.

Response


Example request

GET /api/projects/:project_id/data_warehouse/warehouse_status
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/projects/:project_id/data_warehouse/warehouse_status/

Example response

Status 200
RESPONSE
{
"org_id": "string",
"state": "pending",
"status_message": "string",
"s3_state": "string",
"metadata_store_state": "string",
"identity_state": "string",
"secrets_state": "string",
"ready_at": "2019-08-24T14:15:22Z",
"failed_at": "2019-08-24T14:15:22Z",
"connection": {
"host": "string",
"port": 0,
"database": "string",
"username": "string"
},
"has_backfill": true,
"table_suffix": "string",
"team_onboarded": true,
"schema_name": "string"
}