停用推理 Key

​

所需权限:api_keys:disable。使用绑定目标工作区的 OpenAPI Key,以 Authorization: Bearer <OpenAPI Key> 鉴权。

Path Parameters
  • id
    Type: string
    required

    目标资源外部ID;跨工作区目标不可访问。

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

    同一机器 Key、同一操作使用唯一请求号;重复同参数复用原结果,换参数返回409。最长200字节。

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/{id}/disable
curl https://openapi.apigo.ai/v1/api-keys/REPLACE_WITH_RESOURCE_ID/disable \
  --request POST \
  --header 'Idempotency-Key: request-REPLACE-WITH-UNIQUE-ID' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "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.529Z",
    "last_used_at": null,
    "auto_created": true,
    "can_reveal": false
  }
}