Mint a personal access token (`chrm_user_*`)

Plaintext returned exactly once. 7-day TTL unless expiresInDays picks another lifetime. The legacy /token path 308s here.

post/api/token

Request

  • Base URL: https://charm.ing
  • URL: https://charm.ing/api/token
  • Auth: HTTP bearer

Request body

labelstring
expiresInDaysinteger nullable

Whole days until the token expires. Choose a longer lifetime for a client that can only hold a static bearer token. A caller using a personal access token can create only default-lifetime tokens; a longer one needs a sign-in session.

Response

Token minted

tokenstring required
tokenPrefixstring required
labelstring nullable
expiresAtstring date-time required

Changes

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