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

# List requests



## OpenAPI

````yaml /openapi.json get /v1/account/usage/requests
openapi: 3.1.0
info:
  title: DecisionOne workbench
  description: >-
    Native decisions, immutable datasets, adaptation and shared-base deployment.
    Authenticate with `Authorization: Bearer d1_sk_...` when accounts are on. A
    short guide for coding agents is at /llms.txt. Hosted account APIs accept a
    Bearer API key or a browser session. Browser mutations require the
    configured Origin and X-CSRF-Token from /auth/session. Account recovery and
    history remain available to blocked accounts. Waitlisted accounts can read
    their account summary and model catalogue and request early access; private
    member APIs require admission. Money fields ending in _usd are exact decimal
    strings; never interpret them as integer cents. Authenticated customer reads
    and existing-operation replays share read_rpm. Exhausted budgets return 429
    with Retry-After; unavailable admission storage returns 503.
  version: 0.1.0
servers:
  - url: https://console.sqwish.ai
security: []
tags:
  - name: Decisions
    description: Probabilities for questions with fixed outcomes.
  - name: Feedback
    description: Report outcomes and turn them into training data.
  - name: Models
    description: Base models, adapters and named models with versions.
  - name: Datasets
    description: Validated training examples. A dataset never changes.
  - name: Fine-tuning
    description: Training jobs, their events and held-out results.
  - name: Prompt tuning
    description: Better wording for a decision, tested on your rows. Words, not weights.
  - name: Labeling
    description: Teacher labels for real queries, reviewed by you.
  - name: Accounts
    description: Email OTP sign-in, revocable sessions, security and API keys.
  - name: Billing
    description: Exact USD balances, purchases, automatic top-ups and referrals.
  - name: Integrations
    description: Endpoints other tools call, such as Claude Code.
  - name: System
    description: Health and discovery.
paths:
  /v1/account/usage/requests:
    get:
      tags:
        - Accounts
      summary: List requests
      operationId: listUsageRequests
      parameters:
        - name: start
          in: query
          required: true
          schema:
            type: string
            format: date
            title: Start
        - name: end
          in: query
          required: true
          schema:
            type: string
            format: date
            title: End
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 25
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 256
              - type: 'null'
            title: Cursor
        - name: timezone
          in: query
          required: false
          schema:
            type: string
            maxLength: 64
            default: UTC
            title: Timezone
        - name: model
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 128
              - type: 'null'
            title: Model
        - name: api_key_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 64
              - type: 'null'
            title: Api Key Id
        - name: source
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(api|console)$
              - type: 'null'
            title: Source
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      $ref: '#/components/schemas/UsageRequest'
                    title: Data
                    type: array
                  has_more:
                    title: Has More
                    type: boolean
                  next_cursor:
                    anyOf:
                      - type: string
                      - type: 'null'
                    title: Next Cursor
                required:
                  - data
                  - has_more
                  - next_cursor
                title: Page
                type: object
        4XX:
          description: >-
            Client error. On a 422, `error.details` lists each field that
            failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        5XX:
          description: Server error. A 503 names what is not running on this server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    UsageRequest:
      properties:
        id:
          type: string
          title: Id
        status:
          type: string
          enum:
            - accepted
            - succeeded
            - failed
            - rejected
          title: Status
        source:
          type: string
          enum:
            - api
            - console
          title: Source
        created_at:
          type: number
          title: Created At
        endpoint:
          type: string
          title: Endpoint
        status_code:
          type: integer
          title: Status Code
        requested_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Requested Model
        served_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Served Model
        decisions:
          anyOf:
            - type: integer
            - type: 'null'
          title: Decisions
        input_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Input Tokens
        server_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Server Ms
        request_ms:
          anyOf:
            - type: number
            - type: 'null'
          title: Request Ms
        fallback_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Fallback Reason
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
        api_key:
          $ref: '#/components/schemas/KeyMetadata'
        cost_usd:
          type: string
          title: Cost Usd
      type: object
      required:
        - id
        - status
        - source
        - created_at
        - endpoint
        - status_code
        - requested_model
        - served_model
        - decisions
        - input_tokens
        - server_ms
        - request_ms
        - fallback_reason
        - error_code
        - api_key
        - cost_usd
      title: UsageRequest
    ErrorResponse:
      description: >-
        The body of every error. app.failure() builds it; this model documents
        it.
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      required:
        - error
      title: ErrorResponse
      type: object
    KeyMetadata:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        name:
          type: string
          title: Name
        is_console:
          type: boolean
          title: Is Console
        revoked_at:
          anyOf:
            - type: number
            - type: 'null'
          title: Revoked At
      type: object
      required:
        - id
        - name
        - is_console
        - revoked_at
      title: KeyMetadata
    ErrorBody:
      properties:
        code:
          description: A stable code to branch on, such as invalid_request.
          title: Code
          type: string
        message:
          description: What went wrong and what to change, in plain words.
          title: Message
          type: string
        retryable:
          description: >-
            True when another attempt may succeed; it does not prove that no
            work was done. Respect Retry-After when present. Only operations
            that support Idempotency-Key replay a prior result, including
            /v1/decide for 24 hours.
          title: Retryable
          type: boolean
        request_id:
          description: Also sent as X-Request-ID. Quote it in bug reports.
          title: Request Id
          type: string
        details:
          anyOf:
            - items:
                $ref: '#/components/schemas/ErrorDetail'
              type: array
            - type: 'null'
          default: null
          description: On validation errors, one entry for each field that failed.
          title: Details
      required:
        - code
        - message
        - retryable
        - request_id
      title: ErrorBody
      type: object
    ErrorDetail:
      properties:
        path:
          description: Where the problem is, such as ["body", "decisions", 0, "outcomes"].
          items:
            anyOf:
              - type: string
              - type: integer
          title: Path
          type: array
        message:
          title: Message
          type: string
        type:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Type
      required:
        - path
        - message
      title: ErrorDetail
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: d1_sk_...
      description: Create an API key in the console. Required when accounts are enabled.

````