Skip to main content
DELETE
/
service-accounts
/
{org}
/
{name}
/
api-keys
/
{key_id}
Revoke an API key for a service account
curl --request DELETE \
  --url https://app.kosli.com/api/v2/service-accounts/{org}/{name}/api-keys/{key_id} \
  --header 'Authorization: Bearer <token>'
"<string>"

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
name
string
required

The name of the service account

key_id
string
required

The ID of the API key to revoke

Response

API key revoked successfully

The response is of type string.

Last modified on April 20, 2026