Update inference key limits

​

Required permission: api_keys:update. Authenticate with an OpenAPI Key bound to the target workspace using Authorization: Bearer <OpenAPI Key>.

Path Parameters
  • id
    Type: string
    required

    External ID of the target resource. Resources in another workspace are inaccessible.

Headers
  • Idempotency-Key
    Type: string
    min length:  
    1
    max length:  
    200
    required

    Use a unique request ID for each operation with the same machine Key. A duplicate with identical parameters reuses the original result; changed parameters return 409. Maximum 200 bytes.

Body·
required
application/json
  • limits
    Type: object ·
    required

    Daily limit ≤ 7-day limit ≤ 30-day limit. USD limits allow at most two decimal places. Runtime limits cannot exceed the workspace hard limit.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for patch/v1/api-keys/{id}
curl https://openapi.apigo.ai/v1/api-keys/REPLACE_WITH_RESOURCE_ID \
  --request PATCH \
  --header 'Idempotency-Key: request-REPLACE-WITH-UNIQUE-ID' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "limits": {
    "rpm_limit": 60
  }
}'
{
  "code": 0,
  "message": "string",
  "data": {
    "id": "string",
    "name": "string",
    "owner_name": "string",
    "member_id": "string",
    "billing_type": "credit_balance",
    "use": "string",
    "day_spend_usd": 1,
    "d7_spend_usd": 1,
    "d30_spend_usd": 1,
    "day_limit_usd": null,
    "d7_limit_usd": null,
    "d30_limit_usd": null,
    "rpm_limit": null,
    "tpm_limit": null,
    "concurrency_limit": null,
    "status": "active",
    "request_prefix": "string",
    "created_at": "2026-10-19T02:14:25.575Z",
    "last_used_at": null,
    "auto_created": true,
    "can_reveal": false
  }
}