Data
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
POST | |
GET | |
GET | |
POST | |
POST | |
GET | |
GET | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
DELETE | |
POST | |
POST |
Retrieve data warehouse data health issues
Also available via the PostHog MCP server:
data-warehouse-data-health-issues-retrieve— List data pipeline health issues
Returns failed/disabled data pipeline items for the Pipeline status side panel. Includes: materializations, syncs, sources, destinations, and transformations.
Example request
GET /api /projects /:project_id /data_warehouse /data_health_issuesExample response
Status 200 No response body
Retrieve data warehouse data ops dashboard
Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.
Required API key scopes
warehouse_view:writeExample request
GET /api /projects /:project_id /data_warehouse /data_ops_dashboardExample response
Status 200 No response body
Create data warehouse deprovision
Start deprovisioning the managed warehouse for this team.
Required API key scopes
warehouse_view:writeResponse
Example request
POST /api /projects /:project_id /data_warehouse /deprovisionExample response
Status 200
Retrieve data warehouse job stats
Returns success and failed job statistics for the last 1, 7, or 30 days. Query parameter 'days' can be 1, 7, or 30 (default: 7).
Example request
GET /api /projects /:project_id /data_warehouse /job_statsExample response
Status 200 No response body
Retrieve data warehouse property values
API endpoints for data warehouse aggregate statistics and operations.
Required API key scopes
query:readExample request
GET /api /projects /:project_id /data_warehouse /property_valuesExample response
Status 200 No response body
Create data warehouse provision
Start provisioning a managed warehouse for this team.
Required API key scopes
warehouse_view:writeRequest parameters
- database_namestring
Response
Example request
POST /api /projects /:project_id /data_warehouse /provisionExample response
Status 200
Create data warehouse reset password
Reset the root password for the managed warehouse.
Required API key scopes
warehouse_view:writeResponse
Example request
POST /api /projects /:project_id /data_warehouse /reset-passwordExample response
Status 200
Retrieve data warehouse running activity
Returns currently running activities (jobs with status 'Running'). Supports pagination and cutoff time filtering.
Example request
GET /api /projects /:project_id /data_warehouse /running_activityExample response
Status 200 No response body
Retrieve data warehouse total rows stats
Returns aggregated statistics for the data warehouse total rows processed within the current billing period. Used by the frontend data warehouse scene to display usage information.
Example request
GET /api /projects /:project_id /data_warehouse /total_rows_statsExample response
Status 200 No response body
Retrieve data warehouse warehouse status
Get the current provisioning status of the managed warehouse.
Response
Example request
GET /api /projects /:project_id /data_warehouse /warehouse_statusExample response
Status 200
List all external data schemas
Also available via the PostHog MCP server:
external-data-schemas-list— List data import schemas
Required API key scopes
external_data_source:readQuery parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /projects /:project_id /external_data_schemasExample response
Status 200
Create external data schemas
Required API key scopes
external_data_source:writeRequest parameters
- should_syncboolean
- sync_type
- incremental_fieldstringnull
- incremental_field_type
- sync_frequency
- sync_time_of_daystringnull
- primary_key_columnsarraynull
- cdc_table_mode
- enabled_columnsarraynull
Response
Example request
POST /api /projects /:project_id /external_data_schemasExample response
Status 201
Retrieve external data schemas
Also available via the PostHog MCP server:
external-data-schemas-retrieve— Get data import schema
Required API key scopes
external_data_source:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /external_data_schemas /:idExample response
Status 200
Update external data schemas
Also available via the PostHog MCP server:
external-data-schemas-partial-update— Update data import schema
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- should_syncboolean
- sync_type
- incremental_fieldstringnull
- incremental_field_type
- sync_frequency
- sync_time_of_daystringnull
- primary_key_columnsarraynull
- cdc_table_mode
- enabled_columnsarraynull
Response
Example request
PATCH /api /projects /:project_id /external_data_schemas /:idExample response
Status 200
Delete external data schemas
Required API key scopes
external_data_source:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /external_data_schemas /:idExample response
Status 204 No response body
Create external data schemas cancel
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- should_syncboolean
- sync_type
- incremental_fieldstringnull
- incremental_field_type
- sync_frequency
- sync_time_of_daystringnull
- primary_key_columnsarraynull
- cdc_table_mode
- enabled_columnsarraynull
Example request
POST /api /projects /:project_id /external_data_schemas /:id /cancelExample response
Status 200 No response body
Delete external data schemas delete data
Required API key scopes
external_data_source:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /external_data_schemas /:id /delete_dataExample response
Status 204 No response body
Create external data schemas incremental fields
Also available via the PostHog MCP server:
external-data-schemas-incremental-fields-create— Refresh candidate incremental fields for a schema
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- should_syncboolean
- sync_type
- incremental_fieldstringnull
- incremental_field_type
- sync_frequency
- sync_time_of_daystringnull
- primary_key_columnsarraynull
- cdc_table_mode
- enabled_columnsarraynull
Example request
POST /api /projects /:project_id /external_data_schemas /:id /incremental_fieldsExample response
Status 200 No response body
Create external data schemas reload
Required API key scopes
external_data_source:writePath parameters
- idstring
Request parameters
- should_syncboolean
- sync_type
- incremental_fieldstringnull
- incremental_field_type
- sync_frequency
- sync_time_of_daystringnull
- primary_key_columnsarraynull
- cdc_table_mode
- enabled_columnsarraynull
Example request
POST /api /projects /:project_id /external_data_schemas /:id /reload