Public API

API 키 비활성화

Management key required. 이 팀의 모델 API 키를 비활성화합니다. 같은 요청을 반복할 수 있습니다.

URL의 api_key_id는 모델 API 키 생성(POST /public/v1/api-keys) 응답의 id이며, 형식은 ak_...입니다. 비활성화, 삭제, 한도 설정, 사용량 조회에 필요하므로 저장하세요. 응답의 key(apikey-...)는 모델 호출용이며, 관리 호출의 인증 헤더에는 계속 mgmt-...를 사용합니다.

POST
/public/v1/api-keys/{api_key_id}/disable

Management key required. Use a Management API Key (mgmt-...) for your Team, created by a Team Owner. Requests use the Team associated with that key.

No request body. Can manage keys owned by any member, including keys in archived projects. Repeated disabling succeeds. Deleted keys return 404. Follows existing key revocation and gateway cache refresh behavior.

Authorization

ManagementKeyBearer
AuthorizationBearer <token>

Management key required. Send Authorization: Bearer mgmt-....

In: header

Path Parameters

api_key_id*string

The id returned by Create a model API key (POST /public/v1/api-keys). Copy the complete ak_... value into this path parameter. Use the mgmt-... management key in the authorization header; the returned key (apikey-...) is for model calls.

Match^ak_[0-9A-Za-z]{22}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/public/v1/api-keys/ak_0123456789ABCDEFGHIJKL/disable"
{  "object": "api_key",  "id": "ak_0123456789ABCDEFGHIJKL",  "enabled": false,  "request_id": "req_example"}

Last updated on