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

# Post v1accountusage

> List your team's paid calls and daily totals by endpoint.



## OpenAPI

````yaml /openapi-gateway.json post /v1/account/usage
openapi: 3.1.0
info:
  title: Qubrics API
  version: 1.0.0
servers:
  - url: https://api.qubrics.com
security:
  - bearerAuth: []
paths:
  /v1/account/usage:
    post:
      description: List your team's paid calls and daily totals by endpoint.
      operationId: listUsage
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                cursor:
                  description: Cursor from the previous page. Use the same time range.
                  maxLength: 96
                  type:
                    - string
                    - 'null'
                end_at:
                  description: >-
                    Exclusive end time to millisecond precision, up to 31 days
                    after the start.
                  format: date-time
                  type: string
                limit:
                  default: 25
                  maximum: 100
                  minimum: 1
                  type:
                    - integer
                    - 'null'
                start_at:
                  description: Inclusive start time to millisecond precision.
                  format: date-time
                  type: string
              required:
                - start_at
                - end_at
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
          description: Successful response.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid request parameters.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing or invalid API key.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            WWW-Authenticate:
              schema:
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The API key lacks the required permission.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The endpoint is unavailable or does not exist.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '413':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Request body is too large.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamRateLimited'
          description: >-
            The team reached its request limit. Retry after the current window
            resets.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            Retry-After:
              description: Seconds to wait before retrying.
              required: true
              schema:
                minimum: 1
                type: integer
            X-RateLimit-Limit:
              description: The team's allowance for the current one-second window.
              required: true
              schema:
                minimum: 0
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window.
              required: true
              schema:
                minimum: 0
                type: integer
            X-RateLimit-Reset:
              description: The start of the next window in Unix seconds.
              required: true
              schema:
                minimum: 0
                type: integer
            X-Request-Id:
              required: true
              schema:
                type: string
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unable to complete the request.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            X-Request-Id:
              required: true
              schema:
                type: string
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service temporarily unavailable.
          headers:
            Cache-Control:
              required: true
              schema:
                const: no-store
                type: string
            Retry-After:
              schema:
                type: integer
            X-Request-Id:
              required: true
              schema:
                type: string
components:
  schemas:
    UsageResponse:
      additionalProperties: false
      properties:
        data:
          additionalProperties: false
          properties:
            calls:
              items:
                additionalProperties: false
                properties:
                  endpoint:
                    type: string
                  price_microdollars:
                    minimum: 0
                    type: integer
                  result_class:
                    type: string
                  served_by:
                    type: string
                  time:
                    format: date-time
                    type: string
                required:
                  - endpoint
                  - price_microdollars
                  - result_class
                  - served_by
                  - time
                type: object
              type: array
            daily_totals:
              items:
                additionalProperties: false
                properties:
                  day:
                    format: date
                    type: string
                  endpoint:
                    type: string
                  price_microdollars:
                    minimum: 0
                    type: integer
                required:
                  - day
                  - endpoint
                  - price_microdollars
                type: object
              type: array
          required:
            - calls
            - daily_totals
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: true
          type: boolean
        pagination:
          additionalProperties: false
          properties:
            has_more:
              type: boolean
            next_cursor:
              type:
                - string
                - 'null'
          required:
            - has_more
            - next_cursor
          type: object
      required:
        - data
        - meta
        - ok
        - pagination
      type: object
    ErrorResponse:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              type: string
            doc_url:
              format: uri
              type: string
            message:
              type: string
            retryable:
              type: boolean
          required:
            - code
            - doc_url
            - message
            - retryable
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: false
          type: boolean
      required:
        - error
        - meta
        - ok
      type: object
    TeamRateLimited:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              const: rate_limit_exceeded
              type: string
            doc_url:
              format: uri
              type: string
            message:
              type: string
            retryable:
              const: true
              type: boolean
          required:
            - code
            - doc_url
            - message
            - retryable
          type: object
        meta:
          $ref: '#/components/schemas/RequestMeta'
        ok:
          const: false
          type: boolean
      required:
        - error
        - meta
        - ok
      type: object
    RequestMeta:
      additionalProperties: false
      properties:
        request_id:
          type: string
      required:
        - request_id
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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