account
Who the credential acts as
GET
/api/v1/me
The account behind the credential and the scopes it may exercise.
An organisation token answers with kind: organisation: it acts for the organisation, not for a person. Any valid credential may call this, whatever its scopes.
Response
200
Me
-
idintegerId of the account the credential acts as.
-
namestringIts name, or its address when it has none.
-
kindstringorganisationfor an organisation token,userotherwise. -
organisation_idinteger or nullId of the organisation of the account;
nullwhen it has none. -
scopesarray of stringThe scopes the credential may exercise right now.
Errors
-
401
No valid credential.
-
403
The credential lacks the required scope, or the account may not do this.