Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of allowed parameters.

_bearer_tokenStringSpecifies 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.

emailStringEmail of user assigned to the token
expiry_dateUnix TimestampAn expiry date timestamp assigned to the token
firstnameStringFirst name of user assigned to the token
lastnamesurnameStringLast name of user assigned to the token

deployment

String

Deployment prefix assigned to the token

localeArray of objectsLocale currency symbol and timezone assigned to the token
staff_idUnsigned IntThe id of the staff the token belongs to.

Sample Response

Code Block
languagebash
GET /tokeninfo?_bearer_token=muFs1VSJ_IMfy6SwPOgOK5.eR6EE8o8z5FC2XisZzzfs86X-16l5DfGiKSUqB2--
Code Block
languagejavascript
{
	"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"}
}