API Keys

Create an API key

Creates a new API key for the organization and returns the created key, including the plaintext secret, with a 201 response.

post/v1/api-keys

Request

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

Request body

namestring required
descriptionstring nullable
expiresAtstring nullable

Response

Success

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.