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

# Get Rate Limits and Usage

> Retrieve current rate limit status and usage statistics for the authenticated user across multiple time windows.



## OpenAPI

````yaml https://api.swarms.world/openapi.json get /v1/rate/limits
openapi: 3.1.0
info:
  title: Swarms API
  description: >-
    The Swarms API delivers a high-performance, enterprise-grade platform for
    orchestrating advanced multi-agent systems. Built on a Rust-powered agent
    runtime, it enables scalable, robust, and secure agent collaboration,
    supporting complex workflows and dynamic agent communication. The API
    exposes a comprehensive suite of RESTful endpoints for the management,
    execution, and monitoring of agents, swarms, and related resources,
    empowering organizations to automate and optimize mission-critical
    processes. To access the API, obtain your API key from the [Swarms API Keys
    page](https://swarms.world/platform/api-keys). For detailed integration
    guides, best practices, and reference material, consult the [Swarms API
    Documentation](https://docs.swarms.ai).
  version: 1.0.0
servers:
  - url: https://api.swarms.world
    description: Swarms Production API
security: []
paths:
  /v1/rate/limits:
    get:
      tags:
        - Rate Limiting
        - Account Management
      summary: Get Rate Limits and Usage
      description: >-
        Retrieve current rate limit status and usage statistics for the
        authenticated user across multiple time windows.
      operationId: get_rate_limits_v1_rate_limits_get
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
            title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitsOutput'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RateLimitsOutput:
      properties:
        success:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Success
          description: Indicates whether the rate limits request was successful.
          default: true
        rate_limits:
          anyOf:
            - $ref: '#/components/schemas/RateLimitsInfo'
            - type: 'null'
          description: Current rate limit usage information for different time windows.
        limits:
          anyOf:
            - $ref: '#/components/schemas/RateLimitLimits'
            - type: 'null'
          description: The configured rate limits based on the user's subscription tier.
        tier:
          anyOf:
            - type: string
            - type: 'null'
          title: Tier
          description: The user's current subscription tier (free or premium).
        timestamp:
          anyOf:
            - type: string
            - type: 'null'
          title: Timestamp
          description: ISO timestamp when the rate limits information was retrieved.
      type: object
      required:
        - rate_limits
        - limits
        - tier
        - timestamp
      title: RateLimitsOutput
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RateLimitsInfo:
      properties:
        minute:
          $ref: '#/components/schemas/RateLimitWindow'
          description: Rate limit information for the last minute.
        hour:
          $ref: '#/components/schemas/RateLimitWindow'
          description: Rate limit information for the last hour.
        day:
          $ref: '#/components/schemas/RateLimitWindow'
          description: Rate limit information for the last day.
      type: object
      required:
        - minute
        - hour
        - day
      title: RateLimitsInfo
    RateLimitLimits:
      properties:
        maximum_requests_per_minute:
          type: integer
          title: Maximum Requests Per Minute
          description: The maximum number of requests allowed per minute.
        maximum_requests_per_hour:
          type: integer
          title: Maximum Requests Per Hour
          description: The maximum number of requests allowed per hour.
        maximum_requests_per_day:
          type: integer
          title: Maximum Requests Per Day
          description: The maximum number of requests allowed per day.
        tokens_per_agent:
          type: integer
          title: Tokens Per Agent
          description: The maximum number of tokens allowed per agent.
      type: object
      required:
        - maximum_requests_per_minute
        - maximum_requests_per_hour
        - maximum_requests_per_day
        - tokens_per_agent
      title: RateLimitLimits
    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
    RateLimitWindow:
      properties:
        count:
          type: integer
          title: Count
          description: The number of requests made in this time window.
        limit:
          type: integer
          title: Limit
          description: The maximum number of requests allowed in this time window.
        exceeded:
          type: boolean
          title: Exceeded
          description: Whether the rate limit has been exceeded for this time window.
        remaining:
          type: integer
          title: Remaining
          description: The number of requests remaining before hitting the limit.
        reset_time:
          type: string
          title: Reset Time
          description: ISO timestamp when the rate limit will reset.
      type: object
      required:
        - count
        - limit
        - exceeded
        - remaining
        - reset_time
      title: RateLimitWindow

````