Organization

Rotate API key

Revokes the existing key and creates a new one with the same name and scopes. The new plaintext key is returned once — store it securely.

post/v1/api-keys/{keyId}/rotate

Request

  • Base URL: https://api.abm.dev
  • URL: https://api.abm.dev/v1/api-keys/{keyId}/rotate
  • Auth: API key in header X-API-Key

Path parameters

keyIdstring required

Response

API key rotated

idstring
keystring

Plaintext API key — returned ONLY on creation/rotation. Store this securely; it cannot be retrieved again.

namestring
environment'test' | 'live'
scopesstring[]
createdAtstring date-time
expiresAtstring date-time
warningstring

Reminder that the plaintext key is only shown once

Changes

No recorded changes to this operation across all 1 revision of this API.