Batch exports
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
POST | |
POST | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET |
List all batch exports
Required API key scopes
batch_export:read
Path parameters
- organization_idstring
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET
/api /organizations /:organization_id /batch_exports
Example response
Status 200
Create batch exports
Required API key scopes
batch_export:write
Path parameters
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events
- Eventspersons
- Personssessions
- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Response
Example request
POST
/api /organizations /:organization_id /batch_exports
Example response
Status 201
Retrieve batch exports
Required API key scopes
batch_export:read
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Response
Example request
GET
/api /organizations /:organization_id /batch_exports /:id
Example response
Status 200
Update batch exports
Required API key scopes
batch_export:write
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events
- Eventspersons
- Personssessions
- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Response
Example request
PATCH
/api /organizations /:organization_id /batch_exports /:id
Example response
Status 200
Delete batch exports
Required API key scopes
batch_export:write
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Example request
DELETE
/api /organizations /:organization_id /batch_exports /:id
Example response
Status 204 No response body
Create batch exports backfill
Trigger a backfill for a BatchExport.
Note: This endpoint is deprecated. Please use POST /batch_exports/<id>/backfills/ instead.
Required API key scopes
batch_export:write
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events
- Eventspersons
- Personssessions
- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST
/api /organizations /:organization_id /batch_exports /:id /backfill
Example response
Status 200 No response body
Retrieve batch exports logs
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Example request
GET
/api /organizations /:organization_id /batch_exports /:id /logs
Example response
Status 200 No response body
Create batch exports pause
Pause a BatchExport.
Required API key scopes
batch_export:write
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events
- Eventspersons
- Personssessions
- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST
/api /organizations /:organization_id /batch_exports /:id /pause
Example response
Status 200 No response body
Create batch exports run test step
Required API key scopes
INTERNAL
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events
- Eventspersons
- Personssessions
- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST
/api /organizations /:organization_id /batch_exports /:id /run_test_step
Example response
Status 200 No response body
Create batch exports unpause
Unpause a BatchExport.
Required API key scopes
batch_export:write
Path parameters
- idstring
A UUID string identifying this batch export.
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events
- Eventspersons
- Personssessions
- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST
/api /organizations /:organization_id /batch_exports /:id /unpause
Example response
Status 200 No response body
Create batch exports run test step new
Required API key scopes
INTERNAL
Path parameters
- organization_idstring
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events
- Eventspersons
- Personssessions
- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Example request
POST
/api /organizations /:organization_id /batch_exports /run_test_step_new
Example response
Status 200 No response body
Retrieve batch exports test
Required API key scopes
INTERNAL
Path parameters
- organization_idstring
Example request
GET
/api /organizations /:organization_id /batch_exports /test
Example response
Status 200 No response body
List all batch exports list
Required API key scopes
batch_export:read
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- limitinteger
Number of results to return per page.
- offsetinteger
The initial index from which to return the results.
Response
Example request
GET
/api /projects /:project_id /batch_exports
Example response
Status 200
Create batch exports create
Required API key scopes
batch_export:write
Path parameters
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- namestring
A human-readable name for this BatchExport.
- model
Which model this BatchExport is exporting.
events
- Eventspersons
- Personssessions
- Sessions
- destination
- interval
- pausedboolean
Whether this BatchExport is paused or not.
- last_paused_atstring
The timestamp at which this BatchExport was last paused.
- start_atstring
Time before which any Batch Export runs won't be triggered.
- end_atstring
Time after which any Batch Export runs won't be triggered.
- hogql_querystring
- filters
Response
Example request
POST
/api /projects /:project_id /batch_exports
Example response
Status 201
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:read
Path parameters
- batch_export_idstring
The BatchExport this backfill belongs to.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- cursorstring
The pagination cursor value.
- orderingstring
Which field to use when ordering the results.
Response
Example request
GET
/api /projects /:project_id /batch_exports /:batch_export_id /backfills
Example response
Status 200
Create batch exports backfills
Create a new backfill for a BatchExport.
Required API key scopes
batch_export:write
Path parameters
- batch_export_idstring
The BatchExport this backfill belongs to.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- start_atstring
The start of the data interval.
- end_atstring
The end of the data interval.
- status
The status of this backfill.
Cancelled
- CancelledCompleted
- CompletedContinuedAsNew
- Continued As NewFailed
- FailedFailedRetryable
- Failed RetryableTerminated
- TerminatedTimedOut
- TimedoutRunning
- RunningStarting
- Starting
- finished_atstring
The timestamp at which this BatchExportBackfill finished, successfully or not.
- teaminteger
The team this belongs to.
- batch_exportstring
The BatchExport this backfill belongs to.
Response
Example request
POST
/api /projects /:project_id /batch_exports /:batch_export_id /backfills
Example response
Status 201
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:read
Path parameters
- batch_export_idstring
The BatchExport this backfill belongs to.
- idstring
A UUID string identifying this batch export backfill.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Response
Example request
GET
/api /projects /:project_id /batch_exports /:batch_export_id /backfills /:id
Example response
Status 200
Create batch exports backfills cancel
Cancel a batch export backfill.
Required API key scopes
batch_export:write
Path parameters
- batch_export_idstring
The BatchExport this backfill belongs to.
- idstring
A UUID string identifying this batch export backfill.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Request parameters
- start_atstring
The start of the data interval.
- end_atstring
The end of the data interval.
- status
The status of this backfill.
Cancelled
- CancelledCompleted
- CompletedContinuedAsNew
- Continued As NewFailed
- FailedFailedRetryable
- Failed RetryableTerminated
- TerminatedTimedOut
- TimedoutRunning
- RunningStarting
- Starting
- finished_atstring
The timestamp at which this BatchExportBackfill finished, successfully or not.
- teaminteger
The team this belongs to.
- batch_exportstring
The BatchExport this backfill belongs to.
Example request
POST
/api /projects /:project_id /batch_exports /:batch_export_id /backfills /:id /cancel
Example response
Status 200 No response body
List all batch exports runs
Required API key scopes
batch_export:read
Path parameters
- batch_export_idstring
The BatchExport this run belongs to.
- project_idstring
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
- cursorstring
The pagination cursor value.
- orderingstring
Which field to use when ordering the results.
Response
Example request
GET
/api /projects /:project_id /batch_exports /:batch_export_id /runs