Tokens

Create User Token

Create a new PAT. The plaintext token is returned once.

post/user/me/tokens

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/user/me/tokens
  • Auth: HTTP bearer

Headers

API-Version'1'

Major API version. Omit or send 1 for the current v1 surface. Retired operations use RFC 9745 Deprecation and RFC 8594 Sunset headers.

Request body

namestring required

User-chosen label, e.g. 'My Cursor agent'

scopesstring[] required

Scopes to grant, e.g. ['carts:write','bookings:read']

expires_atstring date-time nullable

Optional expiry; null means never

Response

Successful Response

idinteger required
namestring required
scopesstring[] required
tokenstring required

Plaintext token — store securely, shown only once

expires_atstring date-time nullable
created_atstring date-time required

Changes

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