Generate api token

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

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

Successful response

object
id string required
token string required

Error responses

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated
Next item
Get analysis