Get tokens

Request

GET https://www.activityinfo.org/resources/accounts/tokens

Successful response

application/json

array[object]
id string The token's id. This id can be used to revoke the token, but is not the actual secret token used for authentication. required
label string A human-readable label for this token. required
scope string The scope of this token's authority. Values:
READ_ONLY
Authenticated via API token with read-only scope
READ_WRITE
Authenticated via API token with read and write scope
required
timeCreated float The time when this token was created, in milliseconds since 1970-01-01. required

Error responses

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated

Example

curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/accounts/tokens
Next item
Get translations