Account

Create an API key

The full sk_… token is returned exactly once — store it now.

post/api/keys

Request

  • Base URL: https://snaplab.dev
  • URL: https://snaplab.dev/api/keys
  • Auth: HTTP bearer

Request body

namestring required

Response

The new key, with its plaintext token.

idstring
namestring
prefixstring
createdAtstring date-time
lastUsedAtstring date-time nullable
revokedAtstring date-time nullable
tokenstring

Example response

{
  "prefix": "sk_abc123",
  "token": "sk_…"
}

Changes

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