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

# List credential usage

> Read recent usage for this API key or OAuth grant. OAuth access tokens require `billing:read`.



## OpenAPI

````yaml /openapi.json get /v1/credentials/usage
openapi: 3.1.0
info:
  title: Mouter API
  version: '1.0'
  description: Discover tools, submit tasks, and read results and charges.
servers:
  - url: https://api.mouter.ai
    description: Production
security: []
paths:
  /v1/credentials/usage:
    get:
      tags:
        - Billing
      summary: List credential usage
      description: >-
        Read recent usage for this API key or OAuth grant. OAuth access tokens
        require `billing:read`.
      operationId: list_credential_usage
      parameters:
        - name: limit
          in: query
          required: false
          description: Maximum items per page.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
        - name: cursor
          in: query
          required: false
          description: >-
            Pass the next_cursor value from the previous page with the same
            filters.
          schema:
            type: string
      responses:
        '200':
          description: List credential usage
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 0
                  message:
                    type: string
                    const: ''
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/CredentialUsage'
                  request_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                  page:
                    $ref: '#/components/schemas/Page'
                required:
                  - code
                  - message
                  - data
                  - request_id
                  - page
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '503':
          $ref: '#/components/responses/Error503'
      security:
        - Bearer: []
components:
  schemas:
    CredentialUsage:
      type: object
      properties:
        task_id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,40}$
        tool_key:
          type: string
          pattern: ^[a-z][a-z0-9_]{0,63}$
        status:
          type: string
          enum:
            - pending
            - settled
            - not_charged
        charged_quota:
          type: integer
          minimum: 0
          description: Legacy raw quota. Prefer `charged_amount`.
        reserved_quota:
          type: integer
          minimum: 0
          description: Legacy raw quota. Prefer `reserved_amount`.
        created_at:
          type: integer
          minimum: 0
          description: UTC Unix time in seconds.
        settled_at:
          anyOf:
            - type: integer
              minimum: 0
              description: UTC Unix time in seconds.
            - type: 'null'
        unit:
          type: string
          const: credit
        charged_amount:
          type: number
          minimum: 0
          description: Settled credits; 0 until settled.
        reserved_amount:
          type: number
          minimum: 0
          description: Credits reserved while pending.
      required:
        - task_id
        - tool_key
        - status
        - charged_quota
        - reserved_quota
        - created_at
        - settled_at
        - unit
        - charged_amount
        - reserved_amount
    Page:
      type: object
      properties:
        limit:
          type: integer
          minimum: 1
          maximum: 100
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - limit
        - next_cursor
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: 'null'
        request_id:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - code
        - message
        - data
        - request_id
  responses:
    Error400:
      description: Invalid request parameters, headers, or body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: A valid credential is required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: The credential lacks permission.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: The operation is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: A Mouter API key or OAuth access token.

````

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