Skip to content

Revoke a bucket access key

DELETE/v1/asset-bucket-access-keys/{uid}

Revokes a bucket access key. The key is marked revoked immediately and drops out of List bucket access keys. Its grant on storage is removed by a background sync shortly afterwards. Revoking a key that is already revoked succeeds and changes nothing.

Requires the secrets manage permission (owner, admin or developer role).

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The access key's uid (not its access_key_id).

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The key was revoked.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The access key does not exist in this workspace.

Errors use the standard error format.