PostHog · Capability

PostHog API — data_warehouse

PostHog API — data_warehouse. 148 operations. Lead operation: data_warehouse. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthogdata_warehouse

What You Can Do

GET
Environmentsdatamodelingjobslist — List data modeling jobs which are "runs" for our saved queries.
/v1/api/environments/{environment-id}/data-modeling-jobs
GET
Environmentsdatamodelingjobsrecentretrieve — Get the most recent non-running job for each saved query from the v2 backend.
/v1/api/environments/{environment-id}/data-modeling-jobs/recent
GET
Environmentsdatamodelingjobsrunningretrieve — Get all currently running jobs from the v2 backend.
/v1/api/environments/{environment-id}/data-modeling-jobs/running
GET
Environmentsdatamodelingjobsretrieve — List data modeling jobs which are "runs" for our saved queries.
/v1/api/environments/{environment-id}/data-modeling-jobs/{id}
GET
Environmentsdatawarehousecheckdatabasenameretrieve — Check if a database name is available.
/v1/api/environments/{environment-id}/data-warehouse/check-database-name
GET
Environmentsdatawarehousecompletedactivityretrieve — Returns completed/non-running activities (jobs with status 'Completed').
/v1/api/environments/{environment-id}/data-warehouse/completed-activity
GET
Environmentsdatawarehousedatahealthissuesretrieve — Returns failed/disabled data pipeline items for the Pipeline status side panel.
/v1/api/environments/{environment-id}/data-warehouse/data-health-issues
GET
Environmentsdatawarehousedataopsdashboardretrieve — Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.
/v1/api/environments/{environment-id}/data-warehouse/data-ops-dashboard
POST
Environmentsdatawarehousedeprovisioncreate — Start deprovisioning the managed warehouse for this team.
/v1/api/environments/{environment-id}/data-warehouse/deprovision
GET
Environmentsdatawarehousejobstatsretrieve — Returns success and failed job statistics for the last 1, 7, or 30 days.
/v1/api/environments/{environment-id}/data-warehouse/job-stats
GET
Environmentsdatawarehousepropertyvaluesretrieve — API endpoints for data warehouse aggregate statistics and operations.
/v1/api/environments/{environment-id}/data-warehouse/property-values
POST
Environmentsdatawarehouseprovisioncreate — Start provisioning a managed warehouse for this team.
/v1/api/environments/{environment-id}/data-warehouse/provision
POST
Environmentsdatawarehouseresetpasswordcreate — Reset the root password for the managed warehouse.
/v1/api/environments/{environment-id}/data-warehouse/reset-password
GET
Environmentsdatawarehouserunningactivityretrieve — Returns currently running activities (jobs with status 'Running').
/v1/api/environments/{environment-id}/data-warehouse/running-activity
GET
Environmentsdatawarehousetotalrowsstatsretrieve — Returns aggregated statistics for the data warehouse total rows processed within the current billing period.
/v1/api/environments/{environment-id}/data-warehouse/total-rows-stats
GET
Environmentsdatawarehousewarehousestatusretrieve — Get the current provisioning status of the managed warehouse.
/v1/api/environments/{environment-id}/data-warehouse/warehouse-status
GET
Environmentsexternaldataschemaslist — environmentsexternaldataschemaslist
/v1/api/environments/{environment-id}/external-data-schemas
POST
Environmentsexternaldataschemascreate — environmentsexternaldataschemascreate
/v1/api/environments/{environment-id}/external-data-schemas
GET
Environmentsexternaldataschemasretrieve — environmentsexternaldataschemasretrieve
/v1/api/environments/{environment-id}/external-data-schemas/{id}
PUT
Environmentsexternaldataschemasupdate — environmentsexternaldataschemasupdate
/v1/api/environments/{environment-id}/external-data-schemas/{id}
PATCH
Environmentsexternaldataschemaspartialupdate — environmentsexternaldataschemaspartialupdate
/v1/api/environments/{environment-id}/external-data-schemas/{id}
DELETE
Environmentsexternaldataschemasdestroy — environmentsexternaldataschemasdestroy
/v1/api/environments/{environment-id}/external-data-schemas/{id}
POST
Environmentsexternaldataschemascancelcreate — environmentsexternaldataschemascancelcreate
/v1/api/environments/{environment-id}/external-data-schemas/{id}/cancel
DELETE
Environmentsexternaldataschemasdeletedatadestroy — environmentsexternaldataschemasdeletedatadestroy
/v1/api/environments/{environment-id}/external-data-schemas/{id}/delete-data
POST
Environmentsexternaldataschemasincrementalfieldscreate — environmentsexternaldataschemasincrementalfieldscreate
/v1/api/environments/{environment-id}/external-data-schemas/{id}/incremental-fields
POST
Environmentsexternaldataschemasreloadcreate — environmentsexternaldataschemasreloadcreate
/v1/api/environments/{environment-id}/external-data-schemas/{id}/reload
POST
Environmentsexternaldataschemasresynccreate — environmentsexternaldataschemasresynccreate
/v1/api/environments/{environment-id}/external-data-schemas/{id}/resync
GET
Environmentsexternaldatasourceslist — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources
POST
Environmentsexternaldatasourcescreate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources
POST
Environmentsexternaldatasourcescheckcdcprerequisitescreate — Validate CDC prerequisites against a live Postgres connection.
/v1/api/environments/{environment-id}/external-data-sources/check-cdc-prerequisites
GET
Environmentsexternaldatasourcesconnectionslist — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/connections
POST
Environmentsexternaldatasourcesdatabaseschemacreate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/database-schema
POST
Environmentsexternaldatasourcessourceprefixcreate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/source-prefix
GET
Environmentsexternaldatasourceswizardretrieve — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/wizard
GET
Environmentsexternaldatasourcesretrieve — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}
PUT
Environmentsexternaldatasourcesupdate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}
PATCH
Environmentsexternaldatasourcespartialupdate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}
DELETE
Environmentsexternaldatasourcesdestroy — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}
PATCH
Environmentsexternaldatasourcesbulkupdateschemaspartialupdate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}/bulk-update-schemas
POST
Environmentsexternaldatasourcescreatewebhookcreate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}/create-webhook
POST
Environmentsexternaldatasourcesdeletewebhookcreate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}/delete-webhook
GET
Environmentsexternaldatasourcesjobsretrieve — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}/jobs
POST
Environmentsexternaldatasourcesrefreshschemascreate — Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).
/v1/api/environments/{environment-id}/external-data-sources/{id}/refresh-schemas
POST
Environmentsexternaldatasourcesreloadcreate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}/reload
PATCH
Environmentsexternaldatasourcesrevenueanalyticsconfigpartialupdate — Update the revenue analytics configuration and return the full external data source.
/v1/api/environments/{environment-id}/external-data-sources/{id}/revenue-analytics-config
POST
Environmentsexternaldatasourcesupdatewebhookinputscreate — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}/update-webhook-inputs
GET
Environmentsexternaldatasourceswebhookinforetrieve — Create, Read, Update and Delete External data Sources.
/v1/api/environments/{environment-id}/external-data-sources/{id}/webhook-info
GET
Environmentsinsightvariableslist — environmentsinsightvariableslist
/v1/api/environments/{environment-id}/insight-variables
POST
Environmentsinsightvariablescreate — environmentsinsightvariablescreate
/v1/api/environments/{environment-id}/insight-variables
GET
Environmentsinsightvariablesretrieve — environmentsinsightvariablesretrieve
/v1/api/environments/{environment-id}/insight-variables/{id}
PUT
Environmentsinsightvariablesupdate — environmentsinsightvariablesupdate
/v1/api/environments/{environment-id}/insight-variables/{id}
PATCH
Environmentsinsightvariablespartialupdate — environmentsinsightvariablespartialupdate
/v1/api/environments/{environment-id}/insight-variables/{id}
DELETE
Environmentsinsightvariablesdestroy — environmentsinsightvariablesdestroy
/v1/api/environments/{environment-id}/insight-variables/{id}
GET
Environmentswarehousesavedquerieslist — Create, Read, Update and Delete Warehouse Tables.
/v1/api/environments/{environment-id}/warehouse-saved-queries
POST
Environmentswarehousesavedqueriescreate — Create, Read, Update and Delete Warehouse Tables.
/v1/api/environments/{environment-id}/warehouse-saved-queries
POST
Environmentswarehousesavedqueriesresumeschedulescreate — Resume paused materialization schedules for multiple matviews.
/v1/api/environments/{environment-id}/warehouse-saved-queries/resume-schedules
GET
Environmentswarehousesavedqueriesretrieve — Create, Read, Update and Delete Warehouse Tables.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}
PUT
Environmentswarehousesavedqueriesupdate — Create, Read, Update and Delete Warehouse Tables.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}
PATCH
Environmentswarehousesavedqueriespartialupdate — Create, Read, Update and Delete Warehouse Tables.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}
DELETE
Environmentswarehousesavedqueriesdestroy — Create, Read, Update and Delete Warehouse Tables.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}
GET
Environmentswarehousesavedqueriesactivityretrieve — Create, Read, Update and Delete Warehouse Tables.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/activity
POST
Environmentswarehousesavedqueriesancestorscreate — Return the ancestors of this saved query.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/ancestors
POST
Environmentswarehousesavedqueriescancelcreate — Cancel a running saved query workflow.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/cancel
GET
Environmentswarehousesavedqueriesdependenciesretrieve — Return the count of immediate upstream and downstream dependencies for this saved query.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/dependencies
POST
Environmentswarehousesavedqueriesdescendantscreate — Return the descendants of this saved query.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/descendants
POST
Environmentswarehousesavedqueriesmaterializecreate — Enable materialization for this saved query with a 24-hour sync frequency.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/materialize
POST
Environmentswarehousesavedqueriesrevertmaterializationcreate — Undo materialization, revert back to the original view.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/revert-materialization
POST
Environmentswarehousesavedqueriesruncreate — Run this saved query.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/run
GET
Environmentswarehousesavedqueriesrunhistoryretrieve — Return the recent run history (up to 5 most recent) for this materialized view.
/v1/api/environments/{environment-id}/warehouse-saved-queries/{id}/run-history
GET
Environmentswarehousesavedqueryfolderslist — environmentswarehousesavedqueryfolderslist
/v1/api/environments/{environment-id}/warehouse-saved-query-folders
POST
Environmentswarehousesavedqueryfolderscreate — environmentswarehousesavedqueryfolderscreate
/v1/api/environments/{environment-id}/warehouse-saved-query-folders
GET
Environmentswarehousesavedqueryfoldersretrieve — environmentswarehousesavedqueryfoldersretrieve
/v1/api/environments/{environment-id}/warehouse-saved-query-folders/{id}
PATCH
Environmentswarehousesavedqueryfolderspartialupdate — environmentswarehousesavedqueryfolderspartialupdate
/v1/api/environments/{environment-id}/warehouse-saved-query-folders/{id}
DELETE
Environmentswarehousesavedqueryfoldersdestroy — environmentswarehousesavedqueryfoldersdestroy
/v1/api/environments/{environment-id}/warehouse-saved-query-folders/{id}
GET
Datamodelingjobslist — List data modeling jobs which are "runs" for our saved queries.
/v1/api/projects/{project-id}/data-modeling-jobs
GET
Datamodelingjobsrecentretrieve — Get the most recent non-running job for each saved query from the v2 backend.
/v1/api/projects/{project-id}/data-modeling-jobs/recent
GET
Datamodelingjobsrunningretrieve — Get all currently running jobs from the v2 backend.
/v1/api/projects/{project-id}/data-modeling-jobs/running
GET
Datamodelingjobsretrieve — List data modeling jobs which are "runs" for our saved queries.
/v1/api/projects/{project-id}/data-modeling-jobs/{id}
GET
Datawarehousecheckdatabasenameretrieve — Check if a database name is available.
/v1/api/projects/{project-id}/data-warehouse/check-database-name
GET
Datawarehousecompletedactivityretrieve — Returns completed/non-running activities (jobs with status 'Completed').
/v1/api/projects/{project-id}/data-warehouse/completed-activity
GET
Datawarehousedatahealthissuesretrieve — Returns failed/disabled data pipeline items for the Pipeline status side panel.
/v1/api/projects/{project-id}/data-warehouse/data-health-issues
GET
Datawarehousedataopsdashboardretrieve — Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.
/v1/api/projects/{project-id}/data-warehouse/data-ops-dashboard
POST
Datawarehousedeprovisioncreate — Start deprovisioning the managed warehouse for this team.
/v1/api/projects/{project-id}/data-warehouse/deprovision
GET
Datawarehousejobstatsretrieve — Returns success and failed job statistics for the last 1, 7, or 30 days.
/v1/api/projects/{project-id}/data-warehouse/job-stats
GET
Datawarehousepropertyvaluesretrieve — API endpoints for data warehouse aggregate statistics and operations.
/v1/api/projects/{project-id}/data-warehouse/property-values
POST
Datawarehouseprovisioncreate — Start provisioning a managed warehouse for this team.
/v1/api/projects/{project-id}/data-warehouse/provision
POST
Datawarehouseresetpasswordcreate — Reset the root password for the managed warehouse.
/v1/api/projects/{project-id}/data-warehouse/reset-password
GET
Datawarehouserunningactivityretrieve — Returns currently running activities (jobs with status 'Running').
/v1/api/projects/{project-id}/data-warehouse/running-activity
GET
Datawarehousetotalrowsstatsretrieve — Returns aggregated statistics for the data warehouse total rows processed within the current billing period.
/v1/api/projects/{project-id}/data-warehouse/total-rows-stats
GET
Datawarehousewarehousestatusretrieve — Get the current provisioning status of the managed warehouse.
/v1/api/projects/{project-id}/data-warehouse/warehouse-status
GET
Externaldataschemaslist — externaldataschemaslist
/v1/api/projects/{project-id}/external-data-schemas
POST
Externaldataschemascreate — externaldataschemascreate
/v1/api/projects/{project-id}/external-data-schemas
GET
Externaldataschemasretrieve — externaldataschemasretrieve
/v1/api/projects/{project-id}/external-data-schemas/{id}
PUT
Externaldataschemasupdate — externaldataschemasupdate
/v1/api/projects/{project-id}/external-data-schemas/{id}
PATCH
Externaldataschemaspartialupdate — externaldataschemaspartialupdate
/v1/api/projects/{project-id}/external-data-schemas/{id}
DELETE
Externaldataschemasdestroy — externaldataschemasdestroy
/v1/api/projects/{project-id}/external-data-schemas/{id}
POST
Externaldataschemascancelcreate — externaldataschemascancelcreate
/v1/api/projects/{project-id}/external-data-schemas/{id}/cancel
DELETE
Externaldataschemasdeletedatadestroy — externaldataschemasdeletedatadestroy
/v1/api/projects/{project-id}/external-data-schemas/{id}/delete-data
POST
Externaldataschemasincrementalfieldscreate — externaldataschemasincrementalfieldscreate
/v1/api/projects/{project-id}/external-data-schemas/{id}/incremental-fields
POST
Externaldataschemasreloadcreate — externaldataschemasreloadcreate
/v1/api/projects/{project-id}/external-data-schemas/{id}/reload
POST
Externaldataschemasresynccreate — externaldataschemasresynccreate
/v1/api/projects/{project-id}/external-data-schemas/{id}/resync
GET
Externaldatasourceslist — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources
POST
Externaldatasourcescreate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources
POST
Externaldatasourcescheckcdcprerequisitescreate — Validate CDC prerequisites against a live Postgres connection.
/v1/api/projects/{project-id}/external-data-sources/check-cdc-prerequisites
GET
Externaldatasourcesconnectionslist — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/connections
POST
Externaldatasourcesdatabaseschemacreate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/database-schema
POST
Externaldatasourcessourceprefixcreate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/source-prefix
GET
Externaldatasourceswizardretrieve — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/wizard
GET
Externaldatasourcesretrieve — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}
PUT
Externaldatasourcesupdate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}
PATCH
Externaldatasourcespartialupdate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}
DELETE
Externaldatasourcesdestroy — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}
PATCH
Externaldatasourcesbulkupdateschemaspartialupdate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}/bulk-update-schemas
POST
Externaldatasourcescreatewebhookcreate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}/create-webhook
POST
Externaldatasourcesdeletewebhookcreate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}/delete-webhook
GET
Externaldatasourcesjobsretrieve — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}/jobs
POST
Externaldatasourcesrefreshschemascreate — Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).
/v1/api/projects/{project-id}/external-data-sources/{id}/refresh-schemas
POST
Externaldatasourcesreloadcreate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}/reload
PATCH
Externaldatasourcesrevenueanalyticsconfigpartialupdate — Update the revenue analytics configuration and return the full external data source.
/v1/api/projects/{project-id}/external-data-sources/{id}/revenue-analytics-config
POST
Externaldatasourcesupdatewebhookinputscreate — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}/update-webhook-inputs
GET
Externaldatasourceswebhookinforetrieve — Create, Read, Update and Delete External data Sources.
/v1/api/projects/{project-id}/external-data-sources/{id}/webhook-info
GET
Insightvariableslist — insightvariableslist
/v1/api/projects/{project-id}/insight-variables
POST
Insightvariablescreate — insightvariablescreate
/v1/api/projects/{project-id}/insight-variables
GET
Insightvariablesretrieve — insightvariablesretrieve
/v1/api/projects/{project-id}/insight-variables/{id}
PUT
Insightvariablesupdate — insightvariablesupdate
/v1/api/projects/{project-id}/insight-variables/{id}
PATCH
Insightvariablespartialupdate — insightvariablespartialupdate
/v1/api/projects/{project-id}/insight-variables/{id}
DELETE
Insightvariablesdestroy — insightvariablesdestroy
/v1/api/projects/{project-id}/insight-variables/{id}
GET
Warehousesavedquerieslist — Create, Read, Update and Delete Warehouse Tables.
/v1/api/projects/{project-id}/warehouse-saved-queries
POST
Warehousesavedqueriescreate — Create, Read, Update and Delete Warehouse Tables.
/v1/api/projects/{project-id}/warehouse-saved-queries
POST
Warehousesavedqueriesresumeschedulescreate — Resume paused materialization schedules for multiple matviews.
/v1/api/projects/{project-id}/warehouse-saved-queries/resume-schedules
GET
Warehousesavedqueriesretrieve — Create, Read, Update and Delete Warehouse Tables.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}
PUT
Warehousesavedqueriesupdate — Create, Read, Update and Delete Warehouse Tables.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}
PATCH
Warehousesavedqueriespartialupdate — Create, Read, Update and Delete Warehouse Tables.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}
DELETE
Warehousesavedqueriesdestroy — Create, Read, Update and Delete Warehouse Tables.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}
GET
Warehousesavedqueriesactivityretrieve — Create, Read, Update and Delete Warehouse Tables.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/activity
POST
Warehousesavedqueriesancestorscreate — Return the ancestors of this saved query.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/ancestors
POST
Warehousesavedqueriescancelcreate — Cancel a running saved query workflow.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/cancel
GET
Warehousesavedqueriesdependenciesretrieve — Return the count of immediate upstream and downstream dependencies for this saved query.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/dependencies
POST
Warehousesavedqueriesdescendantscreate — Return the descendants of this saved query.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/descendants
POST
Warehousesavedqueriesmaterializecreate — Enable materialization for this saved query with a 24-hour sync frequency.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/materialize
POST
Warehousesavedqueriesrevertmaterializationcreate — Undo materialization, revert back to the original view.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/revert-materialization
POST
Warehousesavedqueriesruncreate — Run this saved query.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/run
GET
Warehousesavedqueriesrunhistoryretrieve — Return the recent run history (up to 5 most recent) for this materialized view.
/v1/api/projects/{project-id}/warehouse-saved-queries/{id}/run-history
GET
Warehousesavedqueryfolderslist — warehousesavedqueryfolderslist
/v1/api/projects/{project-id}/warehouse-saved-query-folders
POST
Warehousesavedqueryfolderscreate — warehousesavedqueryfolderscreate
/v1/api/projects/{project-id}/warehouse-saved-query-folders
GET
Warehousesavedqueryfoldersretrieve — warehousesavedqueryfoldersretrieve
/v1/api/projects/{project-id}/warehouse-saved-query-folders/{id}
PATCH
Warehousesavedqueryfolderspartialupdate — warehousesavedqueryfolderspartialupdate
/v1/api/projects/{project-id}/warehouse-saved-query-folders/{id}
DELETE
Warehousesavedqueryfoldersdestroy — warehousesavedqueryfoldersdestroy
/v1/api/projects/{project-id}/warehouse-saved-query-folders/{id}

MCP Tools

list-data-modeling-jobs-which

List data modeling jobs which are "runs" for our saved queries.

read-only idempotent
get-most-recent-non-running

Get the most recent non-running job for each saved query from the v2 backend.

read-only idempotent
get-all-currently-running-jobs

Get all currently running jobs from the v2 backend.

read-only idempotent
list-data-modeling-jobs-which-2

List data modeling jobs which are "runs" for our saved queries.

read-only idempotent
check-if-database-name-is

Check if a database name is available.

read-only idempotent
returns-completed-non-running-activities

Returns completed/non-running activities (jobs with status 'Completed').

read-only idempotent
returns-failed-disabled-data-pipeline

Returns failed/disabled data pipeline items for the Pipeline status side panel.

read-only idempotent
returns-data-ops-overview-dashboard

Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.

read-only idempotent
start-deprovisioning-managed-warehouse-this

Start deprovisioning the managed warehouse for this team.

returns-success-and-failed-job

Returns success and failed job statistics for the last 1, 7, or 30 days.

read-only idempotent
api-endpoints-data-warehouse-aggregate

API endpoints for data warehouse aggregate statistics and operations.

read-only idempotent
start-provisioning-managed-warehouse-this

Start provisioning a managed warehouse for this team.

reset-root-password-managed-warehouse

Reset the root password for the managed warehouse.

returns-currently-running-activities-jobs

Returns currently running activities (jobs with status 'Running').

read-only idempotent
returns-aggregated-statistics-data-warehouse

Returns aggregated statistics for the data warehouse total rows processed within the current billing period.

read-only idempotent
get-current-provisioning-status-managed

Get the current provisioning status of the managed warehouse.

read-only idempotent
environmentsexternaldataschemaslist

environmentsexternaldataschemaslist

read-only idempotent
environmentsexternaldataschemascreate

environmentsexternaldataschemascreate

environmentsexternaldataschemasretrieve

environmentsexternaldataschemasretrieve

read-only idempotent
environmentsexternaldataschemasupdate

environmentsexternaldataschemasupdate

idempotent
environmentsexternaldataschemaspartialupdate

environmentsexternaldataschemaspartialupdate

idempotent
environmentsexternaldataschemasdestroy

environmentsexternaldataschemasdestroy

idempotent
environmentsexternaldataschemascancelcreate

environmentsexternaldataschemascancelcreate

environmentsexternaldataschemasdeletedatadestroy

environmentsexternaldataschemasdeletedatadestroy

idempotent
environmentsexternaldataschemasincrementalfieldscreate

environmentsexternaldataschemasincrementalfieldscreate

environmentsexternaldataschemasreloadcreate

environmentsexternaldataschemasreloadcreate

environmentsexternaldataschemasresynccreate

environmentsexternaldataschemasresynccreate

create-read-update-and-delete

Create, Read, Update and Delete External data Sources.

read-only idempotent
create-read-update-and-delete-2

Create, Read, Update and Delete External data Sources.

validate-cdc-prerequisites-against-live

Validate CDC prerequisites against a live Postgres connection.

read-only
create-read-update-and-delete-3

Create, Read, Update and Delete External data Sources.

read-only idempotent
create-read-update-and-delete-4

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-5

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-6

Create, Read, Update and Delete External data Sources.

read-only idempotent
create-read-update-and-delete-7

Create, Read, Update and Delete External data Sources.

read-only idempotent
create-read-update-and-delete-8

Create, Read, Update and Delete External data Sources.

idempotent
create-read-update-and-delete-9

Create, Read, Update and Delete External data Sources.

idempotent
create-read-update-and-delete-10

Create, Read, Update and Delete External data Sources.

idempotent
create-read-update-and-delete-11

Create, Read, Update and Delete External data Sources.

idempotent
create-read-update-and-delete-12

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-13

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-14

Create, Read, Update and Delete External data Sources.

read-only idempotent
fetch-current-schema-table-list

Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).

read-only
create-read-update-and-delete-15

Create, Read, Update and Delete External data Sources.

update-revenue-analytics-configuration-and

Update the revenue analytics configuration and return the full external data source.

idempotent
create-read-update-and-delete-16

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-17

Create, Read, Update and Delete External data Sources.

read-only idempotent
environmentsinsightvariableslist

environmentsinsightvariableslist

read-only idempotent
environmentsinsightvariablescreate

environmentsinsightvariablescreate

environmentsinsightvariablesretrieve

environmentsinsightvariablesretrieve

read-only idempotent
environmentsinsightvariablesupdate

environmentsinsightvariablesupdate

idempotent
environmentsinsightvariablespartialupdate

environmentsinsightvariablespartialupdate

idempotent
environmentsinsightvariablesdestroy

environmentsinsightvariablesdestroy

idempotent
create-read-update-and-delete-18

Create, Read, Update and Delete Warehouse Tables.

read-only idempotent
create-read-update-and-delete-19

Create, Read, Update and Delete Warehouse Tables.

resume-paused-materialization-schedules-multiple

Resume paused materialization schedules for multiple matviews.

create-read-update-and-delete-20

Create, Read, Update and Delete Warehouse Tables.

read-only idempotent
create-read-update-and-delete-21

Create, Read, Update and Delete Warehouse Tables.

idempotent
create-read-update-and-delete-22

Create, Read, Update and Delete Warehouse Tables.

idempotent
create-read-update-and-delete-23

Create, Read, Update and Delete Warehouse Tables.

idempotent
create-read-update-and-delete-24

Create, Read, Update and Delete Warehouse Tables.

read-only idempotent
return-ancestors-this-saved-query

Return the ancestors of this saved query.

read-only
cancel-running-saved-query-workflow

Cancel a running saved query workflow.

read-only
return-count-immediate-upstream-and

Return the count of immediate upstream and downstream dependencies for this saved query.

read-only idempotent
return-descendants-this-saved-query

Return the descendants of this saved query.

read-only
enable-materialization-this-saved-query

Enable materialization for this saved query with a 24-hour sync frequency.

read-only
undo-materialization-revert-back-original

Undo materialization, revert back to the original view.

run-this-saved-query

Run this saved query.

read-only
return-recent-run-history-up

Return the recent run history (up to 5 most recent) for this materialized view.

read-only idempotent
environmentswarehousesavedqueryfolderslist

environmentswarehousesavedqueryfolderslist

read-only idempotent
environmentswarehousesavedqueryfolderscreate

environmentswarehousesavedqueryfolderscreate

read-only
environmentswarehousesavedqueryfoldersretrieve

environmentswarehousesavedqueryfoldersretrieve

read-only idempotent
environmentswarehousesavedqueryfolderspartialupdate

environmentswarehousesavedqueryfolderspartialupdate

idempotent
environmentswarehousesavedqueryfoldersdestroy

environmentswarehousesavedqueryfoldersdestroy

idempotent
list-data-modeling-jobs-which-3

List data modeling jobs which are "runs" for our saved queries.

read-only idempotent
get-most-recent-non-running-2

Get the most recent non-running job for each saved query from the v2 backend.

read-only idempotent
get-all-currently-running-jobs-2

Get all currently running jobs from the v2 backend.

read-only idempotent
list-data-modeling-jobs-which-4

List data modeling jobs which are "runs" for our saved queries.

read-only idempotent
check-if-database-name-is-2

Check if a database name is available.

read-only idempotent
returns-completed-non-running-activities-2

Returns completed/non-running activities (jobs with status 'Completed').

read-only idempotent
returns-failed-disabled-data-pipeline-2

Returns failed/disabled data pipeline items for the Pipeline status side panel.

read-only idempotent
returns-data-ops-overview-dashboard-2

Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.

read-only idempotent
start-deprovisioning-managed-warehouse-this-2

Start deprovisioning the managed warehouse for this team.

returns-success-and-failed-job-2

Returns success and failed job statistics for the last 1, 7, or 30 days.

read-only idempotent
api-endpoints-data-warehouse-aggregate-2

API endpoints for data warehouse aggregate statistics and operations.

read-only idempotent
start-provisioning-managed-warehouse-this-2

Start provisioning a managed warehouse for this team.

reset-root-password-managed-warehouse-2

Reset the root password for the managed warehouse.

returns-currently-running-activities-jobs-2

Returns currently running activities (jobs with status 'Running').

read-only idempotent
returns-aggregated-statistics-data-warehouse-2

Returns aggregated statistics for the data warehouse total rows processed within the current billing period.

read-only idempotent
get-current-provisioning-status-managed-2

Get the current provisioning status of the managed warehouse.

read-only idempotent
externaldataschemaslist

externaldataschemaslist

read-only idempotent
externaldataschemascreate

externaldataschemascreate

externaldataschemasretrieve

externaldataschemasretrieve

read-only idempotent
externaldataschemasupdate

externaldataschemasupdate

idempotent
externaldataschemaspartialupdate

externaldataschemaspartialupdate

idempotent
externaldataschemasdestroy

externaldataschemasdestroy

idempotent
externaldataschemascancelcreate

externaldataschemascancelcreate

externaldataschemasdeletedatadestroy

externaldataschemasdeletedatadestroy

idempotent
externaldataschemasincrementalfieldscreate

externaldataschemasincrementalfieldscreate

externaldataschemasreloadcreate

externaldataschemasreloadcreate

externaldataschemasresynccreate

externaldataschemasresynccreate

create-read-update-and-delete-25

Create, Read, Update and Delete External data Sources.

read-only idempotent
create-read-update-and-delete-26

Create, Read, Update and Delete External data Sources.

validate-cdc-prerequisites-against-live-2

Validate CDC prerequisites against a live Postgres connection.

read-only
create-read-update-and-delete-27

Create, Read, Update and Delete External data Sources.

read-only idempotent
create-read-update-and-delete-28

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-29

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-30

Create, Read, Update and Delete External data Sources.

read-only idempotent
create-read-update-and-delete-31

Create, Read, Update and Delete External data Sources.

read-only idempotent
create-read-update-and-delete-32

Create, Read, Update and Delete External data Sources.

idempotent
create-read-update-and-delete-33

Create, Read, Update and Delete External data Sources.

idempotent
create-read-update-and-delete-34

Create, Read, Update and Delete External data Sources.

idempotent
create-read-update-and-delete-35

Create, Read, Update and Delete External data Sources.

idempotent
create-read-update-and-delete-36

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-37

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-38

Create, Read, Update and Delete External data Sources.

read-only idempotent
fetch-current-schema-table-list-2

Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).

read-only
create-read-update-and-delete-39

Create, Read, Update and Delete External data Sources.

update-revenue-analytics-configuration-and-2

Update the revenue analytics configuration and return the full external data source.

idempotent
create-read-update-and-delete-40

Create, Read, Update and Delete External data Sources.

create-read-update-and-delete-41

Create, Read, Update and Delete External data Sources.

read-only idempotent
insightvariableslist

insightvariableslist

read-only idempotent
insightvariablescreate

insightvariablescreate

insightvariablesretrieve

insightvariablesretrieve

read-only idempotent
insightvariablesupdate

insightvariablesupdate

idempotent
insightvariablespartialupdate

insightvariablespartialupdate

idempotent
insightvariablesdestroy

insightvariablesdestroy

idempotent
create-read-update-and-delete-42

Create, Read, Update and Delete Warehouse Tables.

read-only idempotent
create-read-update-and-delete-43

Create, Read, Update and Delete Warehouse Tables.

resume-paused-materialization-schedules-multiple-2

Resume paused materialization schedules for multiple matviews.

create-read-update-and-delete-44

Create, Read, Update and Delete Warehouse Tables.

read-only idempotent
create-read-update-and-delete-45

Create, Read, Update and Delete Warehouse Tables.

idempotent
create-read-update-and-delete-46

Create, Read, Update and Delete Warehouse Tables.

idempotent
create-read-update-and-delete-47

Create, Read, Update and Delete Warehouse Tables.

idempotent
create-read-update-and-delete-48

Create, Read, Update and Delete Warehouse Tables.

read-only idempotent
return-ancestors-this-saved-query-2

Return the ancestors of this saved query.

read-only
cancel-running-saved-query-workflow-2

Cancel a running saved query workflow.

read-only
return-count-immediate-upstream-and-2

Return the count of immediate upstream and downstream dependencies for this saved query.

read-only idempotent
return-descendants-this-saved-query-2

Return the descendants of this saved query.

read-only
enable-materialization-this-saved-query-2

Enable materialization for this saved query with a 24-hour sync frequency.

read-only
undo-materialization-revert-back-original-2

Undo materialization, revert back to the original view.

run-this-saved-query-2

Run this saved query.

read-only
return-recent-run-history-up-2

Return the recent run history (up to 5 most recent) for this materialized view.

read-only idempotent
warehousesavedqueryfolderslist

warehousesavedqueryfolderslist

read-only idempotent
warehousesavedqueryfolderscreate

warehousesavedqueryfolderscreate

read-only
warehousesavedqueryfoldersretrieve

warehousesavedqueryfoldersretrieve

read-only idempotent
warehousesavedqueryfolderspartialupdate

warehousesavedqueryfolderspartialupdate

idempotent
warehousesavedqueryfoldersdestroy

warehousesavedqueryfoldersdestroy

idempotent

Capability Spec

posthog-data-warehouse.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — data_warehouse
  description: 'PostHog API — data_warehouse. 148 operations. Lead operation: data_warehouse. Self-contained Naftiko capability
    covering one Posthog business surface.'
  tags:
  - Posthog
  - data_warehouse
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-data-warehouse
    baseUri: ''
    description: PostHog API — data_warehouse business capability. Self-contained, no shared references.
    resources:
    - name: api-environments-environment_id-data_modeling_jobs
      path: /api/environments/{environment_id}/data_modeling_jobs/
      operations:
      - name: environmentsdatamodelingjobslist
        method: GET
        description: List data modeling jobs which are "runs" for our saved queries.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cursor
          in: query
          type: string
          description: The pagination cursor value.
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: saved_query_id
          in: query
          type: string
    - name: api-environments-environment_id-data_modeling_jobs-recent
      path: /api/environments/{environment_id}/data_modeling_jobs/recent/
      operations:
      - name: environmentsdatamodelingjobsrecentretrieve
        method: GET
        description: Get the most recent non-running job for each saved query from the v2 backend.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_modeling_jobs-running
      path: /api/environments/{environment_id}/data_modeling_jobs/running/
      operations:
      - name: environmentsdatamodelingjobsrunningretrieve
        method: GET
        description: Get all currently running jobs from the v2 backend.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_modeling_jobs-id
      path: /api/environments/{environment_id}/data_modeling_jobs/{id}/
      operations:
      - name: environmentsdatamodelingjobsretrieve
        method: GET
        description: List data modeling jobs which are "runs" for our saved queries.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this data modeling job.
          required: true
    - name: api-environments-environment_id-data_warehouse-check-database-name
      path: /api/environments/{environment_id}/data_warehouse/check-database-name/
      operations:
      - name: environmentsdatawarehousecheckdatabasenameretrieve
        method: GET
        description: Check if a database name is available.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: query
          type: string
          description: Database name to check
          required: true
    - name: api-environments-environment_id-data_warehouse-completed_activity
      path: /api/environments/{environment_id}/data_warehouse/completed_activity/
      operations:
      - name: environmentsdatawarehousecompletedactivityretrieve
        method: GET
        description: Returns completed/non-running activities (jobs with status 'Completed').
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-data_health_issues
      path: /api/environments/{environment_id}/data_warehouse/data_health_issues/
      operations:
      - name: environmentsdatawarehousedatahealthissuesretrieve
        method: GET
        description: Returns failed/disabled data pipeline items for the Pipeline status side panel.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-data_ops_dashboard
      path: /api/environments/{environment_id}/data_warehouse/data_ops_dashboard/
      operations:
      - name: environmentsdatawarehousedataopsdashboardretrieve
        method: GET
        description: Returns the data ops overview dashboard ID for this team, creating it if it doesn't exist yet.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-deprovision
      path: /api/environments/{environment_id}/data_warehouse/deprovision/
      operations:
      - name: environmentsdatawarehousedeprovisioncreate
        method: POST
        description: Start deprovisioning the managed warehouse for this team.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-job_stats
      path: /api/environments/{environment_id}/data_warehouse/job_stats/
      operations:
      - name: environmentsdatawarehousejobstatsretrieve
        method: GET
        description: Returns success and failed job statistics for the last 1, 7, or 30 days.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-property_values
      path: /api/environments/{environment_id}/data_warehouse/property_values/
      operations:
      - name: environmentsdatawarehousepropertyvaluesretrieve
        method: GET
        description: API endpoints for data warehouse aggregate statistics and operations.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-provision
      path: /api/environments/{environment_id}/data_warehouse/provision/
      operations:
      - name: environmentsdatawarehouseprovisioncreate
        method: POST
        description: Start provisioning a managed warehouse for this team.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-data_warehouse-reset-password
      path: /api/environments/{environment_id}/data_warehouse/reset-password/
      operations:
      - name: environmentsdatawarehouseresetpasswordcreate
        method: POST
        description: Reset the root password for the managed warehouse.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-running_activity
      path: /api/environments/{environment_id}/data_warehouse/running_activity/
      operations:
      - name: environmentsdatawarehouserunningactivityretrieve
        method: GET
        description: Returns currently running activities (jobs with status 'Running').
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-total_rows_stats
      path: /api/environments/{environment_id}/data_warehouse/total_rows_stats/
      operations:
      - name: environmentsdatawarehousetotalrowsstatsretrieve
        method: GET
        description: Returns aggregated statistics for the data warehouse total rows processed within the current billing
          period.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-data_warehouse-warehouse_status
      path: /api/environments/{environment_id}/data_warehouse/warehouse_status/
      operations:
      - name: environmentsdatawarehousewarehousestatusretrieve
        method: GET
        description: Get the current provisioning status of the managed warehouse.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-external_data_schemas
      path: /api/environments/{environment_id}/external_data_schemas/
      operations:
      - name: environmentsexternaldataschemaslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        - name: search
          in: query
          type: string
          description: A search term.
      - name: environmentsexternaldataschemascreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-external_data_schemas-id
      path: /api/environments/{environment_id}/external_data_schemas/{id}/
      operations:
      - name: environmentsexternaldataschemasretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
      - name: environmentsexternaldataschemasupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentsexternaldataschemaspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentsexternaldataschemasdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
    - name: api-environments-environment_id-external_data_schemas-id-cancel
      path: /api/environments/{environment_id}/external_data_schemas/{id}/cancel/
      operations:
      - name: environmentsexternaldataschemascancelcreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-external_data_schemas-id-delete_data
      path: /api/environments/{environment_id}/external_data_schemas/{id}/delete_data/
      operations:
      - name: environmentsexternaldataschemasdeletedatadestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
    - name: api-environments-environment_id-external_data_schemas-id-incremental_fields
      path: /api/environments/{environment_id}/external_data_schemas/{id}/incremental_fields/
      operations:
      - name: environmentsexternaldataschemasincrementalfieldscreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-external_data_schemas-id-reload
      path: /api/environments/{environment_id}/external_data_schemas/{id}/reload/
      operations:
      - name: environmentsexternaldataschemasreloadcreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-external_data_schemas-id-resync
      path: /api/environments/{environment_id}/external_data_schemas/{id}/resync/
      operations:
      - name: environmentsexternaldataschemasresynccreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data schema.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-external_data_sources
      path: /api/environments/{environment_id}/external_data_sources/
      operations:
      - name: environmentsexternaldatasourceslist
        method: GET
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        - name: search
          in: query
          type: string
          description: A search term.
      - name: environmentsexternaldatasourcescreate
        method: POST
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-external_data_sources-check_cdc_prerequisites
      path: /api/environments/{environment_id}/external_data_sources/check_cdc_prerequisites/
      operations:
      - name: environmentsexternaldatasourcescheckcdcprerequisitescreate
        method: POST
        description: Validate CDC prerequisites against a live Postgres connection.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-external_data_sources-connections
      path: /api/environments/{environment_id}/external_data_sources/connections/
      operations:
      - name: environmentsexternaldatasourcesconnectionslist
        method: GET
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        - name: search
          in: query
          type: string
          description: A search term.
    - name: api-environments-environment_id-external_data_sources-database_schema
      path: /api/environments/{environment_id}/external_data_sources/database_schema/
      operations:
      - name: environmentsexternaldatasourcesdatabaseschemacreate
        method: POST
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-external_data_sources-source_prefix
      path: /api/environments/{environment_id}/external_data_sources/source_prefix/
      operations:
      - name: environmentsexternaldatasourcessourceprefixcreate
        method: POST
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-external_data_sources-wizard
      path: /api/environments/{environment_id}/external_data_sources/wizard/
      operations:
      - name: environmentsexternaldatasourceswizardretrieve
        method: GET
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-external_data_sources-id
      path: /api/environments/{environment_id}/external_data_sources/{id}/
      operations:
      - name: environmentsexternaldatasourcesretrieve
        method: GET
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
      - name: environmentsexternaldatasourcesupdate
        method: PUT
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentsexternaldatasourcespartialupdate
        method: PATCH
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentsexternaldatasourcesdestroy
        method: DELETE
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
    - name: api-environments-environment_id-external_data_sources-id-bulk_update_schemas
      path: /api/environments/{environment_id}/external_data_sources/{id}/bulk_update_schemas/
      operations:
      - name: environmentsexternaldatasourcesbulkupdateschemaspartialupdate
        method: PATCH
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        - name: search
          in: query
          type: string
          description: A search term.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-external_data_sources-id-create_webhook
      path: /api/environments/{environment_id}/external_data_sources/{id}/create_webhook/
      operations:
      - name: environmentsexternaldatasourcescreatewebhookcreate
        method: POST
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-external_data_sources-id-delete_webhook
      path: /api/environments/{environment_id}/external_data_sources/{id}/delete_webhook/
      operations:
      - name: environmentsexternaldatasourcesdeletewebhookcreate
        method: POST
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-external_data_sources-id-jobs
      path: /api/environments/{environment_id}/external_data_sources/{id}/jobs/
      operations:
      - name: environmentsexternaldatasourcesjobsretrieve
        method: GET
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
    - name: api-environments-environment_id-external_data_sources-id-refresh_schemas
      path: /api/environments/{environment_id}/external_data_sources/{id}/refresh_schemas/
      operations:
      - name: environmentsexternaldatasourcesrefreshschemascreate
        method: POST
        description: Fetch current schema/table list from the source and create any new ExternalDataSchema rows (no data sync).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-external_data_sources-id-reload
      path: /api/environments/{environment_id}/external_data_sources/{id}/reload/
      operations:
      - name: environmentsexternaldatasourcesreloadcreate
        method: POST
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-external_data_sources-id-revenue_analytics_confi
      path: /api/environments/{environment_id}/external_data_sources/{id}/revenue_analytics_config/
      operations:
      - name: environmentsexternaldatasourcesrevenueanalyticsconfigpartialupdate
        method: PATCH
        description: Update the revenue analytics configuration and return the full external data source.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-external_data_sources-id-update_webhook_inputs
      path: /api/environments/{environment_id}/external_data_sources/{id}/update_webhook_inputs/
      operations:
      - name: environmentsexternaldatasourcesupdatewebhookinputscreate
        method: POST
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-external_data_sources-id-webhook_info
      path: /api/environments/{environment_id}/external_data_sources/{id}/webhook_info/
      operations:
      - name: environmentsexternaldatasourceswebhookinforetrieve
        method: GET
        description: Create, Read, Update and Delete External data Sources.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this external data source.
          required: true
    - name: api-environments-environment_id-insight_variables
      path: /api/environments/{environment_id}/insight_variables/
      operations:
      - name: environmentsinsightvariableslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: A page number within the paginated result set.
      - name: environmentsinsightvariablescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-insight_variables-id
      path: /api/environments/{environment_id}/insight_variables/{id}/
      operations:
      - name: environmentsinsightvariablesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
      - name: environmentsinsightvariablesupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentsinsightvariablespartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentsinsightvariablesdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this insight variable.
          required: true
    - name: api-environments-environment_id-warehouse_saved_queries
      path: /api/environments/{environment_id}/warehouse_saved_queries/
      operations:
      - name: environmentswarehousesavedquerieslist
        method: GET
        description: Create, Read, Update and Delete Warehouse Tables.
        outputRawFormat: json
        outputParameters:
        

# --- truncated at 32 KB (221 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/capabilities/posthog-data-warehouse.yaml