Skip to content

Get Current User Profile

Request

Return the member and team the current access token belongs to.

  • Effect: none. Read-only. Safe to retry with bounded backoff.
  • Use: the cheapest way to check that a token is still valid and to discover the team it is scoped to.
Security
Authorization
curl -i -X GET \
  https://api.morelogin.com/oauth2/userinfo \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success. data is an object with the fields teamId, teamName, memberId, memberNickName and memberEmail.

Headers
any
Bodyapplication/json
codeintegerrequired
msgstring or nullrequired
dataobjectrequired
requestIdstringrequired
Response
{ "code": 0, "msg": null, "data": { "teamId": "1673823102599682", "teamName": "example-name", "memberId": "1673823102599682", "memberNickName": "example-name", "memberEmail": "string" }, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }