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

# Get current quota

> Read current rolling compute use and remaining headroom.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/users/{user_id}/quota
openapi: 3.1.0
info:
  title: Synth API Reference
  version: 2026-08-23.alpha
  description: HTTP API for your account, tasks, datasets, agent runs and usage.
servers:
  - url: https://sprites-gateway.api.synthlabs.ai
    description: Synth API
security: []
tags:
  - name: Identity
    description: Manage customer tokens without exposing internal service credentials.
  - name: Registry
    description: >-
      Create, discover, set visibility, version, execute, and inspect results
      for Harbor-compatible tasks and datasets.
  - name: Managed execution
    description: Validate, run, observe, and retrieve Harbor-compatible managed work.
  - name: Usage
    description: Inspect authoritative current rolling quota.
paths:
  /api/v1/users/{user_id}/quota:
    get:
      tags:
        - Usage
      summary: Get current quota
      description: Read current rolling compute use and remaining headroom.
      operationId: getQuota
      parameters:
        - in: path
          name: user_id
          required: true
          schema:
            format: uuid
            title: User Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuotaStatus'
          description: Current rolling-window quota state for the user.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - UserBearer: []
components:
  schemas:
    QuotaStatus:
      description: Current quota status for a user within the rolling window.
      properties:
        max_compute_seconds:
          exclusiveMinimum: 0
          title: Max Compute Seconds
          type: number
        quota_exhausted:
          title: Quota Exhausted
          type: boolean
        remaining_compute_seconds:
          minimum: 0
          title: Remaining Compute Seconds
          type: number
        used_compute_seconds:
          minimum: 0
          title: Used Compute Seconds
          type: number
        utilization_pct:
          maximum: 100
          minimum: 0
          title: Utilization Pct
          type: number
        window_end:
          description: End of current rolling window (now)
          format: date-time
          title: Window End
          type: string
        window_seconds:
          description: Rolling window size in seconds (e.g. 18000 = 5h)
          title: Window Seconds
          type: integer
        window_start:
          description: Start of current rolling window
          format: date-time
          title: Window Start
          type: string
      required:
        - window_seconds
        - window_start
        - window_end
        - used_compute_seconds
        - max_compute_seconds
        - remaining_compute_seconds
        - quota_exhausted
        - utilization_pct
      title: QuotaStatus
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    UserBearer:
      description: Synth customer access token for the current user and organization.
      scheme: bearer
      type: http

````

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