Get User Identity
Returns the minimum data to identify a user.
Facts
Attribute | Value |
---|---|
url | https://www.moneybutton.com/api/v1/auth/user_identity |
http verb | GET |
Required scope | auth.user_identity:read |
Response
{
"data": {
"id": "75101",
"type": "user_identities",
"attributes": {
"id": "75101",
"name": "John Doe"
}
},
"jsonapi": {
"version": "1.0"
}
}
Using our js api client
const { id, name } = await mbClient.getIdentity()
console.log(`The id is ${id} and the name is ${name}`)