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

# Get rate limit status

> Retrieve the rate limit status for the authenticated token. Rate limits use a one-hour window; the current limit and usage are also reported on every response via the `x-ratelimit-*` headers.



## OpenAPI

````yaml https://api.qlty.sh/openapi.json get /rate_limit
openapi: 3.1.0
info:
  title: Qlty API
  version: 1.0.0
  description: >-
    The Qlty API is organized around REST. It provides predictable,
    resource-oriented URLs, accepts JSON-encoded request bodies, and returns
    JSON-encoded responses.
servers:
  - url: https://api.qlty.sh
security:
  - Bearer: []
tags:
  - name: Service
    description: Service status and API discovery operations
  - name: User
    description: Operations for the authenticated user
  - name: Workspaces
    description: Operations for managing workspaces
  - name: Projects
    description: Operations for managing projects
  - name: Issues
    description: Operations for managing issues
  - name: Metrics
    description: Operations for retrieving metrics
  - name: Components
    description: Operations for retrieving components
  - name: Coverage
    description: Operations for retrieving code coverage data
paths:
  /rate_limit:
    get:
      tags:
        - Service
      summary: Get rate limit status
      description: >-
        Retrieve the rate limit status for the authenticated token. Rate limits
        use a one-hour window; the current limit and usage are also reported on
        every response via the `x-ratelimit-*` headers.
      operationId: getRateLimit
      responses:
        '200':
          description: Rate limit status for the authenticated user
          headers:
            x-ratelimit-limit:
              schema:
                type: integer
                example: 5000
                description: Maximum number of requests allowed in the current window
              required: false
              description: Maximum number of requests allowed in the current window
            x-ratelimit-remaining:
              schema:
                type: integer
                example: 4990
                description: Number of requests remaining in the current window
              required: false
              description: Number of requests remaining in the current window
            x-ratelimit-used:
              schema:
                type: integer
                example: 10
                description: Number of requests used in the current window
              required: false
              description: Number of requests used in the current window
            x-ratelimit-reset:
              schema:
                type: integer
                example: 1734567890
                description: Unix timestamp when the rate limit window resets
              required: false
              description: Unix timestamp when the rate limit window resets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitResponse'
              example:
                resources:
                  core:
                    limit: 5000
                    used: 10
                    remaining: 4990
                    reset: 1734567890
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate Limit Exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    RateLimitResponse:
      type: object
      properties:
        resources:
          type: object
          properties:
            core:
              $ref: '#/components/schemas/RateLimitResource'
          required:
            - core
          description: Rate limit information by resource type
      required:
        - resources
    Error:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              status:
                type: string
                example: '400'
              title:
                type: string
                example: Bad Request
              detail:
                type: string
                example: The request was invalid.
            required:
              - status
              - title
              - detail
      required:
        - errors
    RateLimitResource:
      type: object
      properties:
        limit:
          type: integer
          example: 5000
          description: Maximum number of requests allowed in the current window
        used:
          type: integer
          example: 10
          description: Number of requests used in the current window
        remaining:
          type: integer
          example: 4990
          description: Number of requests remaining in the current window
        reset:
          type: integer
          example: 1734567890
          description: Unix timestamp when the rate limit window resets
      required:
        - limit
        - used
        - remaining
        - reset
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: Generate an API token at https://qlty.sh/user/settings/tokens

````