API Keys

Rotate an API key

Issues a replacement with the same owner, name, and access, then deactivates the existing key. Returns the new key, including the plaintext secret.

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

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/api-keys/{id}/rotate
  • Auth: API key in header x-api-key

Path parameters

idstring required

Response

ApiKeyWithSecret

idstring required
namestring required
keystring required
startstring nullable required
endstring nullable required
descriptionstring nullable
createdAtstring required
expiresAtstring nullable required
lastUsedAtstring nullable required
isActiveboolean required

Changes

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