Batch
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
POST | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET | |
GET |
Create org organizations batch exports run test step
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /organizations /:organization_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create org organizations batch exports run test step
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /organizations /:organization_id /batch_exports /:id /run_test_stepExample response
Status 200 No response body
Create org organizations batch exports unpause
Unpause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /organizations /:organization_id /batch_exports /:id /unpauseExample response
Status 200 No response body
Create org organizations batch exports unpause
Unpause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstring
Request parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /organizations /:organization_id /batch_exports /:id /unpauseExample response
Status 200 No response body
Create org organizations batch exports run test step new
Required API key scopes
batch_export:writeRequest parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /organizations /:organization_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Create org organizations batch exports run test step new
Required API key scopes
batch_export:writeRequest parameters
- namestring
- model
- destination
- interval
- pausedboolean
- last_paused_atstringnull
- start_atstringnull
- end_atstringnull
- hogql_querystring
- filters
- timezone
- offset_dayintegernull
- offset_hourintegernull
Example request
POST /api /organizations /:organization_id /batch_exports /run_test_step_newExample response
Status 200 No response body
Retrieve org organizations batch exports test
Required API key scopes
batch_export:readExample request
GET /api /organizations /:organization_id /batch_exports /testExample response
Status 200 No response body
Retrieve org organizations batch exports test
Required API key scopes
batch_export:readExample request
GET /api /organizations /:organization_id /batch_exports /testExample response
Status 200 No response body
List all batch exports
Also available via the PostHog MCP server:
batch-exports-list— List batch exports
Required API key scopes
batch_export:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /batch_exportsExample response
Status 200
RESPONSE
List all batch exports
Also available via the PostHog MCP server:
batch-exports-list— List batch exports
Required API key scopes
batch_export:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /batch_exportsExample response
Status 200
RESPONSE
Create batch exports
Required API key scopes
batch_export:writeRequest parameters
- namestring
- model
- destination
- interval
- pausedboolean
- hogql_querystring
- filters
- timezonestringnull
- offset_dayintegernull
- offset_hourintegernull
Response
Example request
POST /api /projects /:project_id /batch_exportsExample response
Status 201
RESPONSE
Create batch exports
Required API key scopes
batch_export:writeRequest parameters
- namestring
- model
- destination
- interval
- pausedboolean
- hogql_querystring
- filters
- timezonestringnull
- offset_dayintegernull
- offset_hourintegernull
Response
Example request
POST /api /projects /:project_id /batch_exportsExample response
Status 201
RESPONSE
List all batch exports backfills
ViewSet for BatchExportBackfill models.
Allows creating and reading backfills, but not updating or deleting them.
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
Query parameters
- cursorstring
- orderingstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /backfillsExample response
Status 200
RESPONSE
Create batch exports backfills
Create a new backfill for a BatchExport.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
Request parameters
- start_atstringnull
- end_atstringnull
- status
- finished_atstringnull
- total_records_countintegernull
- adjusted_start_atstringnull
- teaminteger
- batch_exportstring
Response
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /backfillsExample response
Status 201
RESPONSE
Retrieve batch exports backfills
ViewSet for BatchExportBackfill models.
Allows creating and reading backfills, but not updating or deleting them.
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /backfills /:idExample response
Status 200
RESPONSE
Create batch exports backfills cancel
Cancel a batch export backfill.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstring
- idstring
Request parameters
- start_atstringnull
- end_atstringnull
- status
- finished_atstringnull
- total_records_countintegernull
- adjusted_start_atstringnull
- teaminteger
- batch_exportstring
Example request
POST /api /projects /:project_id /batch_exports /:batch_export_id /backfills /:id /cancelExample response
Status 200 No response body
List all batch exports runs
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
Query parameters
- cursorstring
- orderingstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runsExample response
Status 200
RESPONSE
List all batch exports runs
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
Query parameters
- cursorstring
- orderingstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runsExample response
Status 200
RESPONSE
Retrieve batch exports runs
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runs /:idExample response
Status 200
RESPONSE
Retrieve batch exports runs
Required API key scopes
batch_export:readPath parameters
- batch_export_idstring
- idstring
Response
Example request
GET /api /projects /:project_id /batch_exports /:batch_export_id /runs /:idExample response
Status 200
RESPONSE