Skip to main content

Revoke API key

DELETE
/ai/admin/service-accounts/{id}/keys/{keyId}

Contract

Parameter
Value
Sectionai-admin
AuthenticationCookieAuth
Consumesnot required
Producesapplication/json

Parameters

2 parameters

Name
Location
Required
Type
Description
idpathyesintegerService-account ID
keyIdpathyesintegerAPI-key ID

Responses

4 responses

Status
Description
Type
200
Successful responseno body
400
Invalid service-account or API-key IDobject
401
Unauthorizedobject
500
Internal server errorobject
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }