Generate a new personal API token
Generates a new API token with the given scope and saves to the authenticated user's account.
POST https://www.activityinfo.org/resources/accounts/tokens/generate
object |
label |
string |
A human-readable label for this token. For example, "PowerBI Laptop" or "R Studio Thinkpad". |
required |
scope |
string |
Values:
-
READ_ONLY
-
Authenticated via API token with read-only scope
-
READ_WRITE
-
Authenticated via API token with read and write scope
|
required |
object |
id |
string |
|
required |
token |
string |
|
required |
Status Code |
Error Code |
Description |
401 |
AUTHENTICATION_REQUIRED |
The request must be authenticated |