API-Schlüssel löschen
Management key required. Löscht einen Modell-API-Schlüssel dauerhaft und bewahrt seinen Nutzungsverlauf.
api_key_id in der URL ist das Feld id im Format ak_... aus der Antwort von API-Schlüssel erstellen (POST /public/v1/api-keys). Speichern Sie es zum Deaktivieren, Löschen, Ändern des Budgets und Abfragen der Nutzung. Das Feld key (apikey-...) dient Modellaufrufen; Verwaltungsaufrufe verwenden weiterhin mgmt-... im Autorisierungsheader.
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. Soft-deletes the key, preserving its identity and usage history. A deleted key cannot be enabled or have its allowance changed. Repeating deletion of this Team's key returns 204; unknown or other-Team identifiers return 404. Follows existing gateway cache refresh behavior.
Authorization
ManagementKeyBearer Management key required. Send Authorization: Bearer mgmt-....
In: header
Path Parameters
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.
^ak_[0-9A-Za-z]{22}$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/public/v1/api-keys/ak_0123456789ABCDEFGHIJKL"Last updated on