AI

Export AI Request Logs

Required scopes: ai.request-log (Read only).

Starts an asynchronous operation that builds a file with the AI request logs matching the filters, and returns its identifier. Poll Check AI Request Logs Export Status until status is finished, then call Download AI Request Logs Export for a link to the file.

Passing no filters exports every log entry of the organization, newest first. Columns and value formatting are identical to List AI Request Logs.

post/ai/request-logs/exports

Request

Request body

format'csv'

Format of the exported file. One of: csv. Default is csv

requestIdstring

Filter results to the log entry with this request identifier

projectIdinteger

Filter results to requests made in this project. Get via List Projects

userIdinteger

Filter results to requests attributed to this user. Get via List Users

aiProviderIdinteger

Filter results to requests served by this AI provider. Get via List AI Providers

modelstring

Filter results to requests made with this AI model

sourceAction'ai_proxy' | 'ai_gateway' | 'ai_translate_strings' | 'ai_file_translate' | 'ai_prompt_completion' | 'pre_translate:manual' | 'pre_translate:workflow' | 'ai_alignment' | 'qa_check' | 'ai_suggestion' | 'advisor'

Filter results to requests produced by this feature or channel

promptActionstring

Filter results to requests made for this prompt action, e.g. pre_translate, qa_check, advisor_context_review, or a custom:-prefixed value

statusesstring[]

Filter results to requests in any of these statuses

tokenNamestring

Filter results to requests authenticated with a personal access token of this name

oauthClientIdstring

Filter results to requests authenticated by the OAuth application with this client_id

systemCredentialsboolean

If true, only requests that used system-provided credentials are exported

isAutoTriggeredboolean

If true, only requests triggered automatically rather than by an interactive user action are exported

createdAfterstring date-time

Filter results to requests logged after this date, in ISO 8601 format

createdBeforestring date-time

Filter results to requests logged before this date, in ISO 8601 format

Example request

{
  "requestId": "9d3b1c4e-2f3a-4b5c-8d6e-7f8a9b0c1d2e",
  "projectId": 8,
  "userId": 42,
  "aiProviderId": 3,
  "model": "gpt-5.6-sol",
  "sourceAction": "ai_gateway",
  "promptAction": "qa_check",
  "statuses": [
    "success",
    "error"
  ],
  "tokenName": "Token name",
  "oauthClientId": "gpbccUFxAKZDrLm5Nq8t",
  "createdAfter": "2026-07-01T10:41:33+00:00",
  "createdBefore": "2026-07-31T23:59:59+00:00"
}

Response

Export was queued

Example response

{
  "data": {
    "identifier": "50fb3506-4127-4ba8-8296-f97dc7e3e0c3",
    "status": "finished",
    "progress": 100,
    "attributes": {
      "format": "csv"
    },
    "createdAt": "2026-01-23T11:26:54+00:00",
    "updatedAt": "2026-01-23T11:27:10+00:00",
    "startedAt": "2026-01-23T11:26:56+00:00",
    "finishedAt": "2026-01-23T11:27:10+00:00",
    "eta": "14 seconds"
  }
}

Changes

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