Prefect Workspace Rate Limit Allocations API

The Workspace Rate Limit Allocations API from Prefect — 1 operation(s) for workspace rate limit allocations.

Operations 2

GET /api/accounts/{account_id}/rate-limit-allocations/ Read Workspace Rate Limit Allocations #
PUT /api/accounts/{account_id}/rate-limit-allocations/ Upsert Workspace Rate Limit Allocations #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/prefect-workspace-rate-limit-allocations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

prefect-workspace-rate-limit-allocations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Prefect Cloud Account Billing Workspace Rate Limit Allocations API
  description: Prefect Cloud REST API documentation.
  version: 0.8.4
tags:
- name: Workspace Rate Limit Allocations
paths:
  /api/accounts/{account_id}/rate-limit-allocations/:
    get:
      tags:
      - Workspace Rate Limit Allocations
      summary: Read Workspace Rate Limit Allocations
      description: 'Get all rate limit allocations for the account.


        Required account permissions: `read:account`'
      operationId: read_workspace_rate_limit_allocations_api_accounts__account_id__rate_limit_allocations__get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkspaceRateLimitAllocation'
                title: Response Read Workspace Rate Limit Allocations Api Accounts  Account Id  Rate Limit Allocations  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Workspace Rate Limit Allocations
      summary: Upsert Workspace Rate Limit Allocations
      description: 'Upsert all workspace rate limit allocations for the account.


        All workspaces in the account must be included in the allocations list,

        or an empty list to clear all allocations.


        Required account permissions: `update:account`'
      operationId: upsert_workspace_rate_limit_allocations_api_accounts__account_id__rate_limit_allocations__put
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Account Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkspaceRateLimitAllocationsUpsert'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WorkspaceRateLimitAllocation'
                title: Response Upsert Workspace Rate Limit Allocations Api Accounts  Account Id  Rate Limit Allocations  Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WorkspaceRateLimitAllocation:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        created:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created
        updated:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated
        account_id:
          type: string
          format: uuid
          title: Account Id
          description: The account ID this allocation belongs to.
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
          description: The workspace ID this allocation applies to.
        rate_limit_percentage:
          type: number
          maximum: 100.0
          minimum: 0.1
          title: Rate Limit Percentage
          description: Percentage of account's rate limits allocated to this workspace (0.1-100).
      type: object
      required:
      - account_id
      - workspace_id
      - rate_limit_percentage
      title: WorkspaceRateLimitAllocation
      description: A percentage-based rate limit allocation for a workspace.
    WorkspaceRateLimitAllocationEntry:
      properties:
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
          description: The workspace ID to allocate rate limits for.
        rate_limit_percentage:
          type: number
          maximum: 100.0
          minimum: 0.1
          title: Rate Limit Percentage
          description: Percentage of account's rate limits allocated to this workspace (0.1-100).
      additionalProperties: false
      type: object
      required:
      - workspace_id
      - rate_limit_percentage
      title: WorkspaceRateLimitAllocationEntry
      description: A single workspace allocation entry for bulk upsert.
    WorkspaceRateLimitAllocationsUpsert:
      properties:
        allocations:
          items:
            $ref: '#/components/schemas/WorkspaceRateLimitAllocationEntry'
          type: array
          title: Allocations
          description: List of workspace allocations. Workspaces not in this list will have their allocations removed.
      additionalProperties: false
      type: object
      title: WorkspaceRateLimitAllocationsUpsert
      description: Data used to upsert all workspace rate limit allocations for an account.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError