ApiKeys

Create API key

Creates a new API key. The full secret (token) is returned only in this response—store it securely, it cannot be retrieved again.

post/auth/keys

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/auth/keys
  • Auth: API key in header Authorization

Headers

Idempotency-Keystring

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

namestring nullable

Optional human-readable label for the key. Defaults to "Default" when omitted.

Response

API key created (includes the full secret)

objectstring required
idstring required
namestring nullable required
last4string required
token_typestring required
tokenstring nullable required
last_used_atstring nullable required
expires_atstring nullable required
created_atstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.