My account
Create a personal access token
Changed onCreate a personal access token for the signed-in user. A logto-verification-id in header and the personal-access-tokens scope are required. The token secret value is returned only in this response. The expiration time is required, must be in the future, and must be at most 365 days from now. A user can have at most 20 unexpired personal access tokens.
post/api/my-account/personal-access-tokens
Request
- Base URL: https://[tenant_id].logto.app
- URL: https://[tenant_id].logto.app/api/my-account/personal-access-tokens
- Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)
Request body
Response
The personal access token was created successfully. The response includes the token secret value, which cannot be retrieved again.
Changes
- info
endpoint added
- info