AI

List AI Request Logs

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

get/ai/request-logs

Request

Query parameters

limitinteger

A maximum number of items to retrieve

offsetinteger

A starting offset in the collection

requestIdstring

Filter by request identifier

projectIdinteger

Filter by project. Get via List Projects

userIdinteger

Filter by the user attributed to the AI request. Get via List Users

aiProviderIdinteger

Filter by AI provider. Get via List AI Providers

modelstring

Filter by model name

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 by the feature or channel that produced the request. One of:

  • ai_gateway - AI Gateway API
  • ai_proxy - AI Proxy API
  • ai_translate_strings - AI Translate Strings API
  • ai_file_translate - AI File Translations API
  • ai_prompt_completion - AI Prompt Completion API
  • pre_translate:manual - Auto-Translation (manual)
  • pre_translate:workflow - Auto-Translation (workflow)
  • ai_alignment - Glossary Alignment (Enterprise only)
  • qa_check - QA Check
  • ai_suggestion - AI suggestion
  • advisor - Context Advisor
promptActionstring

Filter by prompt action, e.g. pre_translate, alignment, qa_check, advisor_context_review, or a custom:-prefixed value

statusesstring[]

Filter by status, comma-separated

systemCredentialsboolean

Filter by whether the request used system-provided credentials

isAutoTriggeredboolean

Filter by whether the request was triggered automatically (e.g. by a workflow) rather than by an interactive user action

tokenNamestring

Filter by the name of the personal access token used to authenticate the request

oauthClientIdstring

Filter by the OAuth application that authenticated the request, matched on its client_id. Returned as oauthClientId on each log entry.

createdAfterstring date-time

Return logs created after this date (ISO 8601)

createdBeforestring date-time

Return logs created before this date (ISO 8601)

Response

AI request logs list

Example response

{
  "data": [
    {
      "data": {
        "id": 12345,
        "requestId": "9d3b1c4e-2f3a-4b5c-8d6e-7f8a9b0c1d2e",
        "createdAt": "2026-01-01T10:00:00+00:00",
        "status": "success",
        "httpStatus": 200,
        "model": "gpt-5.6-sol",
        "sourceAction": "ai_gateway",
        "promptAction": "pre_translate",
        "durationMs": 842,
        "inputTokens": 512,
        "outputTokens": 128,
        "totalCost": 0.012345,
        "userId": 42,
        "projectId": 8,
        "promptId": 5,
        "aiProviderId": 3,
        "tokenName": "Token name",
        "oauthClientId": "gpbccUFxAKZDrLm5Nq8t",
        "oauthClientName": "AI Pipeline",
        "ip": "203.0.113.42",
        "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
      }
    }
  ],
  "pagination": {
    "limit": 25
  }
}

Changes

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