v50

latestOpenAPI 3.1.0Proprietaryraw.githubusercontent.com2026-05-1759238438.1 KB
Usage

Set API key quota

Creates or updates a per-key quota limit. The key will be enforced independently of the organization quota.

put/v1beta/quota/keys/{api_key_id}

Path parameters

api_key_idstring required

The API key ID (required).

The API key ID (required).

Request body

limitinteger nullable

The limit for this key. Must be > 0.

organization_idstring nullable

Optional: organization ID. If not provided, uses the caller's organization.

Example request

{
  "organization_id": "org_01h2xcejqtf2nbrexx3vqjhp41"
}

Response

Success

Example response

{
  "quota": {
    "api_key_id": "key_01h2xcejqtf2nbrexx3vqjhp41"
  }
}