Create a personal access token (session-only)

Requires a browser session — a token cannot mint more tokens. The plaintext token is returned exactly once.

post/api/tokens

Request

  • Base URL: https://whenmeet.me
  • URL: https://whenmeet.me/api/tokens
  • Auth: API key in cookie __Host-session

Request body

namestring
scopesstring[]

Default ["read","write"]; "write" implies "read".

expiresInDays30 | 90 | 365 | null nullable

Default 90; null = never expires.

Response

{ id, name, token, scopes, expiresAt } — store the token now.

Changes

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