data_warehouse

Returns completed/non-running activities (jobs with status 'Completed'). Supports pagination and cutoff time filtering.

get/api/projects/{project_id}/data_warehouse/completed_activity/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/data_warehouse/completed_activity/
  • Auth: none declared

Path parameters

project_idstring required

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

cutoff_daysinteger

Only include runs created within this many days of now. Defaults to 30.

kind'all' | 'import' | 'model'

Which runs to return: 'import' for warehouse source syncs, 'model' for materialized view runs, 'all' for both. Defaults to 'all'.

  • all - all
  • import - import
  • model - model
limitinteger

Max rows to return. Capped at 50 server-side. Defaults to 20.

offsetinteger

Rows to skip, for pagination. Defaults to 0.

outcome'completed' | 'failed' | 'all'

Which outcome to return: 'completed', 'failed', or 'all' for every run that finished either way. Defaults to 'completed'. Running jobs come from running_activity instead.

  • completed - completed
  • failed - failed
  • all - all

Response

nextstring nullable required

Query string for the next page, or null on the last.

previousstring nullable required

Query string for the previous page, or null on the first.

Changes

No recorded changes to this operation across all 1 revision of this API.