Skip to content

Revoke an API key

DELETE
/api/v1/api-keys/{id}
curl --request DELETE \
--url https://api.deploybase.eu/api/v1/api/v1/api-keys/example \
--header 'Authorization: <Authorization>'

Revokes one of the current team’s API keys. Requests made with it are refused from then on. Revocation is permanent; a revoked key cannot be rotated. Requires the admin role.

id
required
string

API key ID (UUID)

Revoked

INVALID_INPUT

object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Unauthorized

object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Forbidden

object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

RESOURCE_NOT_FOUND

object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Internal Server Error

object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Live 174db30c built