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

# Get Rate Limits

> Return live rate-limit usage (RPM / RPD / TPM) vs limits. Always reads fresh
Redis counters — no caching.

Accepts either a dashboard session token (JWT) — returning org/team/member
scopes — or an rsk_ API key, returning a single `key` scope for that key.



## OpenAPI

````yaml /api/openapi.json get /v1/usage/rate-limits
openapi: 3.1.0
info:
  title: MeshAPI
  description: One key, all AI models.
  version: 0.1.0
servers:
  - url: https://api.meshapi.ai
security:
  - BearerAuth: []
paths:
  /v1/usage/rate-limits:
    get:
      tags:
        - Usage
      summary: Get Rate Limits
      description: >-
        Return live rate-limit usage (RPM / RPD / TPM) vs limits. Always reads
        fresh

        Redis counters — no caching.


        Accepts either a dashboard session token (JWT) — returning
        org/team/member

        scopes — or an rsk_ API key, returning a single `key` scope for that
        key.
      operationId: get_rate_limits
      parameters:
        - name: org_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Organisation UUID. Required for session (JWT) callers; ignored for
              API keys.
            title: Org Id
          description: >-
            Organisation UUID. Required for session (JWT) callers; ignored for
            API keys.
        - name: team_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Team UUID (optional filter)
            title: Team Id
          description: Team UUID (optional filter)
        - in: header
          name: X-Mesh-Version
          required: false
          schema:
            type: string
            enum:
              - 2026-08
            default: 2026-08
          example: 2026-08
          description: >-
            Dated version of the API contract to pin this request to. Omit it
            and the request is served under `2026-08` — the oldest supported
            version, so an existing integration is never moved by a release. A
            malformed or unsupported value is rejected with `400
            invalid_api_version` rather than falling back silently. The version
            actually served is echoed as `X-Mesh-Version` on every response,
            including errors.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DashboardResponse'
              examples:
                default:
                  summary: Example response
                  value:
                    as_of: '2026-07-14T10:20:00+00:00'
                    org: null
                    team: null
                    member: null
                    key:
                      rpm:
                        current: 42
                        limit: 60
                        is_default_limit: false
                        pct: 70
                        resets_in_seconds: 37
                      rpd:
                        current: 5120
                        limit: 10000
                        is_default_limit: false
                        pct: 51.2
                        resets_in_seconds: 49200
                      tpm:
                        current: 18000
                        limit: 1000000
                        is_default_limit: true
                        pct: 1.8
                        resets_in_seconds: 37
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    DashboardResponse:
      properties:
        as_of:
          type: string
          title: As Of
        org:
          anyOf:
            - $ref: '#/components/schemas/ScopeMetrics'
            - type: 'null'
        team:
          anyOf:
            - $ref: '#/components/schemas/ScopeMetrics'
            - type: 'null'
        member:
          anyOf:
            - $ref: '#/components/schemas/ScopeMetrics'
            - type: 'null'
        key:
          anyOf:
            - $ref: '#/components/schemas/ScopeMetrics'
            - type: 'null'
      type: object
      required:
        - as_of
        - org
        - team
        - member
      title: DashboardResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ScopeMetrics:
      properties:
        rpm:
          $ref: '#/components/schemas/RateMetric'
        rpd:
          $ref: '#/components/schemas/RateMetric'
        tpm:
          $ref: '#/components/schemas/RateMetric'
      type: object
      required:
        - rpm
        - rpd
        - tpm
      title: ScopeMetrics
      description: Rate limits for an org / team / member scope.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    RateMetric:
      properties:
        current:
          type: integer
          title: Current
        limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Limit
        is_default_limit:
          type: boolean
          title: Is Default Limit
        pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Pct
        resets_in_seconds:
          type: integer
          title: Resets In Seconds
      type: object
      required:
        - current
        - limit
        - is_default_limit
        - pct
        - resets_in_seconds
      title: RateMetric
      description: Current usage for one rate-limit dimension.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Enter your MeshAPI key (`rsk_...`) — sent as `Authorization: Bearer
        <key>`.

````