API tokens

Create a personal API token

Requires a short-lived session JWT. A personal API token cannot mint another token.

post/api/account/tokens

Request

  • Base URL: https://slimlytics.com
  • URL: https://slimlytics.com/api/account/tokens
  • Auth: HTTP bearer

Request body

namestring required
expiresInDaysinteger
scopesstring[]

Response

Token created; secret is returned exactly once

idstring uuid required
namestring required
tokenPrefixstring required

Non-secret display prefix

scopesstring[] required
lastUsedAtstring date-time nullable
expiresAtstring date-time required
createdAtstring date-time required
tokenstring required

Shown once; store securely

Changes

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