For the complete documentation index, see llms.txt. This page is also available as Markdown.

Activity Data API

Export activity and API usage data.

Export what happened in your organization — who did what, and how much API usage it drove — as CSV or Parquet, for auditing or for loading into your own analytics.

Request a range, poll the job, then download from the returned URLs before they expire.

Endpoint
What it does

POST /activity-data-jobs

Create an activity data job

GET /activity-data-jobs/{jobId}

Get an activity data job

DELETE /activity-data-jobs/{jobId}/cancel

Cancel an activity data job

These endpoints need an OAuth Access Token from an Admin or Superadmin user. See Authorization.

Picking a time range

The range must be under 60 days, start after your account was created, and end no later than the most recent ready data. Data for a day becomes available at 05:00 UTC the following day, so a range ending today usually fails until then.

For a longer history, request consecutive ranges and stitch the exports together.

Endpoints

Create an activity data job

post

Exports your organization's activity data for a time range.

The job runs asynchronously — poll GET /activity-data-jobs/{jobId} until status is success, then use the returned download URLs.

Note this endpoint lives on the accounts host, not on your regional API base URL, and there is no /v3 in the path.

Requires the Admin or Superadmin role.

Authorizations
AuthorizationstringRequired

An API Access Token or an OAuth Access Token, sent as Authorization: Bearer <token>.

Body
formatstring · enumRequiredPossible values:
startTimestringRequired

Start of the range. Must be after your account was created.

endTimestringRequired

End of the range. Must be after startTime, and can't be in the future or cover data that isn't ready yet. The range must be under 60 days.

Responses
201

The job was created.

application/json
idstringOptional
post/activity-data-jobs

Get an activity data job

get

Returns the state of an activity data job. When status is success the response includes the download URLs and their expiry.

Authorizations
AuthorizationstringRequired

An API Access Token or an OAuth Access Token, sent as Authorization: Bearer <token>.

Path parameters
jobIdstringRequired

The job identifier.

Example: e38163e9-37f3-4269-b400-c7b160325bce
Responses
200

The job.

application/json

An activity data export job. downloadUrls and downloadUrlsExpirationDate are only present when status is success; errorMessage only when it is failure.

idstringOptional
statusstring · enumOptionalPossible values:
formatstring · enumOptionalPossible values:
startTimestring · date-timeOptional
endTimestring · date-timeOptional
createdAtstring · date-timeOptional
downloadUrlsExpirationDatestring · date-timeOptional
errorMessagestringOptional
get/activity-data-jobs/{jobId}

Cancel an activity data job

delete

Cancels a job that is still pending or running. Cancelling a finished job returns 400.

Authorizations
AuthorizationstringRequired

An API Access Token or an OAuth Access Token, sent as Authorization: Bearer <token>.

Path parameters
jobIdstringRequired

The job identifier.

Example: e38163e9-37f3-4269-b400-c7b160325bce
Responses
200

The cancelled job.

application/json

An activity data export job. downloadUrls and downloadUrlsExpirationDate are only present when status is success; errorMessage only when it is failure.

idstringOptional
statusstring · enumOptionalPossible values:
formatstring · enumOptionalPossible values:
startTimestring · date-timeOptional
endTimestring · date-timeOptional
createdAtstring · date-timeOptional
downloadUrlsExpirationDatestring · date-timeOptional
errorMessagestringOptional
delete/activity-data-jobs/{jobId}/cancel

Last updated

Was this helpful?