Generate a new personal API token
Generates a new API token with the given scope and saves to the authenticated user's account.
Request
POST https://www.activityinfo.org/resources/accounts/tokens/generate
Request body
application/json
| object | |||
| label | string | A human-readable label for this token. For example, "PowerBI Laptop" or "R Studio Thinkpad". | required |
| scope | string | Values:
|
required |
Successful response
application/json
| object | |||
| id | string | required | |
| token | string | required | |
Error responses
| Status Code | Error Code | Description |
|---|---|---|
| 400 | TOO_ |
The user has exceeded the maximum number of personal API tokens. |
| 401 | AUTHENTICATION_ |
The request must be authenticated |