DELETE /v1/api-keys/{api_key_id}
DELETE
/v1/api-keys/{api_key_id}Authorization
AuthorizationBearer token · headerrequiredPath parameters
api_key_idstring<uuid>requiredAPI key id
Responses
200Revoked. Repeating it returns the same revoked_at.
created_atstring<date-time>requiredcreated_byActorBodyrequiredWho did something, resolved for display. `users` rows are never deleted, so
this renders after a membership ends.
Show propertiesHide properties
display_namestring | nullrequiredprimary_emailstring | nullrequireduser_idstring<uuid>requiredexpires_atstring<date-time> | nullrequiredidstring<uuid>requiredlabelstringrequiredlast_used_atstring<date-time> | nullrequiredpermissionsKeyPermissionSchema[]requiredprefixstringrequiredNon-secret display prefix: the key's marker, its environment, and
eight characters of the secret.
revoked_atstring<date-time> | nullrequired400Malformed path parameter.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired404No such api key, or the caller cannot see its workspace.
errorErrorDetailrequiredShow propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired