Create an inference key for an active member

​

You can assign an inference key to any active member of the current workspace. The secret is returned only for this new key.

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

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
  • member_id
    Type: string
    required

    External ID of an active member in the current workspace. Required for every workspace type.

  • name
    Type: string
    min length:  
    1
    max length:  
    64
    required

    UTF-8 encoded, up to 64 bytes.

  • billing_type
    Type: string enum
    values
    • credit_balance
    • coding_plan
  • limits
    Type: object ·

    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 post/v1/api-keys
curl https://openapi.apigo.ai/v1/api-keys \
  --request POST \
  --header 'Idempotency-Key: request-REPLACE-WITH-UNIQUE-ID' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "name": "server-automation",
  "member_id": "member_REPLACE_ME",
  "billing_type": "credit_balance",
  "limits": {
    "rpm_limit": 60
  }
}'
{
  "code": 0,
  "message": "string",
  "data": {
    "key": {
      "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.529Z",
      "last_used_at": null,
      "auto_created": true,
      "can_reveal": false
    },
    "full_secret": "string"
  }
}