Organization API › Me
Who the key belongs to
GET/api/v1/users/me
The person a personal key belongs to, in the key's organization, with roles
and permissions. roles is what the key acts with (org:member for every
key); permissions is worked out for the person, so it lists what the
person holds, not the key's scopes.
An organization key belongs to no person: it gets 403 NOT_A_PERSON,
which is a working key, not a bad one.
Permission: none — any valid API key of the organization.
Authorization
Responses
200
The key's person.
dataMember & object requiredidstring requiredemailstring (email) requirednamestring requiredtitlestringroleStanding requiredorg_idstring requiredstatusstring requiredmfa_enabledbooleanmfa_setup_requiredbooleanOnly on/users/me: the login policy requires MFA and the person has not set it up.has_passwordbooleanfalsefor people who sign in only with GitHub or Google.phone_numberstringphone_verifiedbooleancreated_atstring (date-time) requiredupdated_atstring (date-time) requiredrolesarray of stringpermissionsarray of string
successboolean required
401
The key is not valid (UNAUTHORIZED), or its person's account no longer exists.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
403
An organization key (NOT_A_PERSON).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
Example request
curl -X GET 'https://evohub.io/api/v1/users/me' \
-H 'Authorization: Bearer <TOKEN>'