Batch
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
List all batch exports
Required API key scopes
batch_export:readPath parameters
- organization_idstring
Query parameters
- limitintegerNumber of results to return per page. 
- offsetintegerThe initial index from which to return the results. 
Response
Request
GET 
Response
Status 200
Create batch exports
Required API key scopes
batch_export:writePath parameters
- organization_idstring
Request parameters
- namestringA human-readable name for this BatchExport. 
- modelWhich model this BatchExport is exporting. - events- Events
- persons- Persons
- sessions- Sessions
 
- destination
- interval
- pausedbooleanWhether this BatchExport is paused or not. 
- last_paused_atstringThe timestamp at which this BatchExport was last paused. 
- start_atstringTime before which any Batch Export runs won't be triggered. 
- end_atstringTime after which any Batch Export runs won't be triggered. 
- hogql_querystring
- filters
Response
Request
POST 
Response
Status 201
Retrieve batch exports
Required API key scopes
batch_export:readPath parameters
- idstringA UUID string identifying this batch export. 
- organization_idstring
Response
Request
GET 
Response
Status 200
Update batch exports
Required API key scopes
batch_export:writePath parameters
- idstringA UUID string identifying this batch export. 
- organization_idstring
Request parameters
- namestringA human-readable name for this BatchExport. 
- modelWhich model this BatchExport is exporting. - events- Events
- persons- Persons
- sessions- Sessions
 
- destination
- interval
- pausedbooleanWhether this BatchExport is paused or not. 
- last_paused_atstringThe timestamp at which this BatchExport was last paused. 
- start_atstringTime before which any Batch Export runs won't be triggered. 
- end_atstringTime after which any Batch Export runs won't be triggered. 
- hogql_querystring
- filters
Response
Request
PATCH 
Response
Status 200
Delete batch exports
Required API key scopes
batch_export:writePath parameters
- idstringA UUID string identifying this batch export. 
- organization_idstring
Request
DELETE 
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:writePath parameters
- idstringA UUID string identifying this batch export. 
- organization_idstring
Request parameters
- namestringA human-readable name for this BatchExport. 
- modelWhich model this BatchExport is exporting. - events- Events
- persons- Persons
- sessions- Sessions
 
- destination
- interval
- pausedbooleanWhether this BatchExport is paused or not. 
- last_paused_atstringThe timestamp at which this BatchExport was last paused. 
- start_atstringTime before which any Batch Export runs won't be triggered. 
- end_atstringTime after which any Batch Export runs won't be triggered. 
- hogql_querystring
- filters
Request
POST 
Response
Status 200 No response body
Retrieve batch exports logs
Path parameters
- idstringA UUID string identifying this batch export. 
- organization_idstring
Request
GET 
Response
Status 200 No response body
Create batch exports pause
Pause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstringA UUID string identifying this batch export. 
- organization_idstring
Request parameters
- namestringA human-readable name for this BatchExport. 
- modelWhich model this BatchExport is exporting. - events- Events
- persons- Persons
- sessions- Sessions
 
- destination
- interval
- pausedbooleanWhether this BatchExport is paused or not. 
- last_paused_atstringThe timestamp at which this BatchExport was last paused. 
- start_atstringTime before which any Batch Export runs won't be triggered. 
- end_atstringTime after which any Batch Export runs won't be triggered. 
- hogql_querystring
- filters
Request
POST 
Response
Status 200 No response body
Create batch exports run test step
Required API key scopes
INTERNALPath parameters
- idstringA UUID string identifying this batch export. 
- organization_idstring
Request parameters
- namestringA human-readable name for this BatchExport. 
- modelWhich model this BatchExport is exporting. - events- Events
- persons- Persons
- sessions- Sessions
 
- destination
- interval
- pausedbooleanWhether this BatchExport is paused or not. 
- last_paused_atstringThe timestamp at which this BatchExport was last paused. 
- start_atstringTime before which any Batch Export runs won't be triggered. 
- end_atstringTime after which any Batch Export runs won't be triggered. 
- hogql_querystring
- filters
Request
POST 
Response
Status 200 No response body
Create batch exports unpause
Unpause a BatchExport.
Required API key scopes
batch_export:writePath parameters
- idstringA UUID string identifying this batch export. 
- organization_idstring
Request parameters
- namestringA human-readable name for this BatchExport. 
- modelWhich model this BatchExport is exporting. - events- Events
- persons- Persons
- sessions- Sessions
 
- destination
- interval
- pausedbooleanWhether this BatchExport is paused or not. 
- last_paused_atstringThe timestamp at which this BatchExport was last paused. 
- start_atstringTime before which any Batch Export runs won't be triggered. 
- end_atstringTime after which any Batch Export runs won't be triggered. 
- hogql_querystring
- filters
Request
POST 
Response
Status 200 No response body
Create batch exports run test step new
Required API key scopes
INTERNALPath parameters
- organization_idstring
Request parameters
- namestringA human-readable name for this BatchExport. 
- modelWhich model this BatchExport is exporting. - events- Events
- persons- Persons
- sessions- Sessions
 
- destination
- interval
- pausedbooleanWhether this BatchExport is paused or not. 
- last_paused_atstringThe timestamp at which this BatchExport was last paused. 
- start_atstringTime before which any Batch Export runs won't be triggered. 
- end_atstringTime after which any Batch Export runs won't be triggered. 
- hogql_querystring
- filters
Request
POST 
Response
Status 200 No response body
Retrieve batch exports test
Required API key scopes
INTERNALPath parameters
- organization_idstring
Request
GET 
Response
Status 200 No response body
List all batch exports list
Required API key scopes
batch_export:readPath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- limitintegerNumber of results to return per page. 
- offsetintegerThe initial index from which to return the results. 
Response
Request
GET 
Response
Status 200
Create batch exports create
Required API key scopes
batch_export:writePath parameters
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Request parameters
- namestringA human-readable name for this BatchExport. 
- modelWhich model this BatchExport is exporting. - events- Events
- persons- Persons
- sessions- Sessions
 
- destination
- interval
- pausedbooleanWhether this BatchExport is paused or not. 
- last_paused_atstringThe timestamp at which this BatchExport was last paused. 
- start_atstringTime before which any Batch Export runs won't be triggered. 
- end_atstringTime after which any Batch Export runs won't be triggered. 
- hogql_querystring
- filters
Response
Request
POST 
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:readPath parameters
- batch_export_idstringThe BatchExport this backfill belongs to. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- cursorstringThe pagination cursor value. 
- orderingstringWhich field to use when ordering the results. 
Response
Request
GET 
Response
Status 200
Create batch exports backfills
Create a new backfill for a BatchExport.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstringThe BatchExport this backfill belongs to. 
- project_idstringProject 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_atstringThe start of the data interval. 
- end_atstringThe end of the data interval. 
- statusThe status of this backfill. - Cancelled- Cancelled
- Completed- Completed
- ContinuedAsNew- Continued As New
- Failed- Failed
- FailedRetryable- Failed Retryable
- Terminated- Terminated
- TimedOut- Timedout
- Running- Running
- Starting- Starting
 
- finished_atstringThe timestamp at which this BatchExportBackfill finished, successfully or not. 
- teamintegerThe team this belongs to. 
- batch_exportstringThe BatchExport this backfill belongs to. 
Response
Request
POST 
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:readPath parameters
- batch_export_idstringThe BatchExport this backfill belongs to. 
- idstringA UUID string identifying this batch export backfill. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Response
Request
GET 
Response
Status 200
Create batch exports backfills cancel
Cancel a batch export backfill.
Required API key scopes
batch_export:writePath parameters
- batch_export_idstringThe BatchExport this backfill belongs to. 
- idstringA UUID string identifying this batch export backfill. 
- project_idstringProject 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_atstringThe start of the data interval. 
- end_atstringThe end of the data interval. 
- statusThe status of this backfill. - Cancelled- Cancelled
- Completed- Completed
- ContinuedAsNew- Continued As New
- Failed- Failed
- FailedRetryable- Failed Retryable
- Terminated- Terminated
- TimedOut- Timedout
- Running- Running
- Starting- Starting
 
- finished_atstringThe timestamp at which this BatchExportBackfill finished, successfully or not. 
- teamintegerThe team this belongs to. 
- batch_exportstringThe BatchExport this backfill belongs to. 
Request
POST 
Response
Status 200 No response body
List all batch exports runs
Required API key scopes
batch_export:readPath parameters
- batch_export_idstringThe BatchExport this run belongs to. 
- project_idstringProject ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/. 
Query parameters
- cursorstringThe pagination cursor value. 
- orderingstringWhich field to use when ordering the results. 
Response
Request
GET 
Response
Status 200