> ## Documentation Index
> Fetch the complete documentation index at: https://omnirelay.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List request records

> Returns newest-first request records, including failures. Pass next as before to fetch another page; next=null ends pagination. Uses the same permission scope and monitoring limit as usage summary.



## OpenAPI

````yaml /openapi.json get /v1/manage/requests
openapi: 3.1.0
info:
  title: OmniRelay API
  version: 1.0.0
  description: >-
    OpenAI-compatible gateway for reviewed real text models. Access is
    workspace-specific; query your own model list for capabilities and customer
    prices.
servers:
  - url: https://api.omnirelay.ai
security:
  - bearerAuth: []
tags:
  - name: Service
  - name: Models
  - name: Chat
  - name: Management
  - name: Responses
  - name: Embeddings
  - name: Images
  - name: Videos
paths:
  /v1/manage/requests:
    get:
      tags:
        - Management
      summary: List request records
      description: >-
        Returns newest-first request records, including failures. Pass next as
        before to fetch another page; next=null ends pagination. Uses the same
        permission scope and monitoring limit as usage summary.
      operationId: managementListRequestRecords
      parameters:
        - name: range
          in: query
          schema:
            type: string
            enum:
              - 24h
              - 7d
              - 30d
              - 90d
            default: 7d
        - name: step
          in: query
          schema:
            type: string
            enum:
              - hour
              - day
            default: day
          description: hour requires range=24h or 7d.
        - name: model
          in: query
          schema:
            type: string
        - name: provider
          in: query
          schema:
            type: string
        - name: key
          in: query
          schema:
            type: string
          description: API key ID, not the credential.
        - name: member
          in: query
          schema:
            type: string
          description: Member ID; requires the owner to have members.read permission.
        - name: tag_key
          in: query
          schema:
            type: string
        - name: tag_value
          in: query
          schema:
            type: string
        - name: tag_group
          in: query
          schema:
            type: string
        - name: status
          in: query
          schema:
            type: string
            enum:
              - ok
              - error
        - name: id
          in: query
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 50
        - name: before
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  requests:
                    type: array
                    items:
                      $ref: '#/components/schemas/ManagementRequestRecord'
                  total:
                    type: integer
                  next:
                    type: string
                    nullable: true
                  limit:
                    type: integer
              example:
                requests: []
                total: 0
                next: null
                limit: 50
        '400':
          description: Invalid JSON, input, tags, model rules, expiry or budget policy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: unauthorized or management_key_required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: insufficient_scope or forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'not_found: unknown route or key not owned by the caller.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            rate_limited: 120 requests per management key per minute; additional
            owner limits may apply.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - managementAuth: []
components:
  schemas:
    ManagementRequestRecord:
      type: object
      properties:
        id:
          type: string
        created:
          type: string
        model:
          type: string
        provider:
          type: string
          nullable: true
        key_id:
          type: string
          nullable: true
        status:
          type: integer
        error:
          type: string
          nullable: true
        input:
          type: integer
          nullable: true
        output:
          type: integer
          nullable: true
        cost:
          type: integer
          nullable: true
        latency:
          type: integer
        mode:
          type: string
        tags:
          type: string
          nullable: true
          description: JSON-encoded tags, or null.
        first_token_ms:
          type:
            - integer
            - 'null'
          minimum: 0
          description: >-
            Time to first streamed text or tool-argument token in milliseconds.
            Null for non-streaming or unobserved requests.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - type
          properties:
            code:
              type: string
              example: model_unavailable
            message:
              type: string
              example: The model does not exist or is disabled.
              description: >-
                Short English description for logs and SDK exceptions. Its
                wording can change; branch on code.
            type:
              type: string
              example: not_found_error
              description: >-
                Error family by HTTP status: invalid_request_error,
                authentication_error, insufficient_quota, permission_error,
                not_found_error, conflict_error, rate_limit_error,
                service_unavailable or api_error.
            param:
              type: string
              maxLength: 200
              description: >-
                Rejected request field path when identifiable; never a parameter
                value. Responses uses native field names.
        request_id:
          type: string
          description: Present on chat completion, Responses and embeddings errors.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API key created in the OmniRelay console. The owner can view it again
        in the console after confirming their identity.
    managementAuth:
      type: http
      scheme: bearer
      description: >-
        Management key created in the console. read scope reads; write scope
        also changes API keys. Inference API keys are not accepted.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.