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

# GET /admin/api/credentials/{id}/quota-observations



## OpenAPI

````yaml /generated/openapi.json get /admin/api/credentials/{id}/quota-observations
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /admin/api/credentials/{id}/quota-observations:
    get:
      tags:
        - Management
      summary: GET /admin/api/credentials/{id}/quota-observations
      parameters:
        - description: 1-based. Zero and absent both mean the first page.
          in: query
          name: page
          required: false
          schema:
            description: 1-based. Zero and absent both mean the first page.
            format: uint64
            minimum: 0
            type:
              - integer
              - 'null'
        - description: Clamped to 1..=500; absent means 50.
          in: query
          name: pageSize
          required: false
          schema:
            description: Clamped to 1..=500; absent means 50.
            format: uint64
            minimum: 0
            type:
              - integer
              - 'null'
        - description: |-
            Inclusive. Absent means the start of the earliest open cycle of the
            credential, or 24 hours before now when none is open.
          in: query
          name: sinceMs
          required: false
          schema:
            description: >-
              Inclusive. Absent means the start of the earliest open cycle of
              the

              credential, or 24 hours before now when none is open.
            format: int64
            type:
              - integer
              - 'null'
        - description: Exclusive. Absent means no upper bound.
          in: query
          name: untilMs
          required: false
          schema:
            description: Exclusive. Absent means no upper bound.
            format: int64
            type:
              - integer
              - 'null'
        - in: path
          name: id
          required: true
          schema:
            type: string
        - description: Administrative scope selected by the caller.
          in: header
          name: x-gproxy-admin-scope
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Page28'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Output_Page28:
      description: |-
        One page of results. `total` counts every row the filters match, not the
        page, so a console can render a pager without a second request.
      properties:
        items:
          items:
            $ref: '#/components/schemas/Output_QuotaObservationDto'
          type: array
        limit:
          format: uint64
          minimum: 0
          type: integer
        offset:
          format: uint64
          minimum: 0
          type: integer
        total:
          format: uint64
          minimum: 0
          type: integer
      required:
        - items
        - total
        - offset
        - limit
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_QuotaObservationDto:
      description: |-
        One persisted upstream reading of one window: a row of the observation
        log the cycles are built from.
      properties:
        credentialId:
          type: string
        cycleCostUsd:
          description: |-
            That cycle's `costUsd` when the reading was taken; the difference
            between two readings of one cycle is the USD spent between them.
          type:
            - string
            - 'null'
        cycleId:
          description: The cycle the reading fell in, if any.
          type:
            - string
            - 'null'
        id:
          type: string
        observedAtMs:
          format: int64
          type: integer
        resetsAtMs:
          format: int64
          type:
            - integer
            - 'null'
        scope: true
        snapshot:
          description: The observed `QuotaEntry`, as the channel reported it.
        startsAtMs:
          format: int64
          type:
            - integer
            - 'null'
      required:
        - id
        - credentialId
        - scope
        - snapshot
        - observedAtMs
        - startsAtMs
        - resetsAtMs
        - cycleId
        - cycleCostUsd
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey
    consoleSession:
      in: cookie
      name: gproxy_session
      type: apiKey

````

## Related topics

- [GET /admin/api/credentials/{id}/quota](https://gproxy.leenhawk.com/api-reference/management/get-adminapicredentials-quota.md)
- [GET /admin/api/credentials/{id}/quota-reset-credits](https://gproxy.leenhawk.com/api-reference/management/get-adminapicredentials-quota-reset-credits.md)
- [GET /admin/api/credentials/{id}/limits](https://gproxy.leenhawk.com/api-reference/management/get-adminapicredentials-limits.md)
- [GET /admin/api/credentials/{id}](https://gproxy.leenhawk.com/api-reference/management/get-adminapicredentials-1.md)
- [GET /admin/api/credentials/providers](https://gproxy.leenhawk.com/api-reference/management/get-adminapicredentialsproviders.md)


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