Token Info
The following macros are not currently supported in the header:
  • style

Token Info

Resource URL

Returns the information for a specified token.

GET /tokeninfo

Parameters

Table of allowed parameters.

_bearer_token

String

Specifies the token for which you would like the info in the response.

Handling the response

Below is a table of available response fields and objects that are returned within the response object of the returned object. Underlined values are default.

email

String

Email of user assigned to the token

expiry_date

Unix Timestamp

An expiry date timestamp assigned to the token

firstname

String

First name of user assigned to the token

surname

String

Last name of user assigned to the token

deployment

String

Deployment prefix assigned to the token

locale

Array of objects

Locale currency symbol and timezone assigned to the token

staff_id

Unsigned Int

The id of the staff the token belongs to.

Sample Response

GET /tokeninfo?_bearer_token=muFs1VSJ_IMfy6SwPOgOK5.eR6EE8o8z5FC2XisZzzfs86X-16l5DfGiKSUqB2--
{ "response" : { "locale" : { "timezone":"America/Los_Angeles", "currency":{"symbol":"$"} }, "email":"bren.pearson@accelo.com", "firstname":"Bren", "deployment":"hq", "expiry_date":"1468046391", "surname":"Pearson" }, "meta":{"message":"Everything executed as expected.","status":"ok","more_info":"https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok"} }