curl -X GET \
/user/me \
--header "Authorization: Bearer <token>"{
"user": {
"firstName": "John",
"lastName": "Doe",
"email": "jsmith@example.com",
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ"
},
"account": {
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ"
},
"tenant": {
"name": "ACME",
"legalCompanyName": "Acme Inc.",
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ",
"username": "acme"
},
"roles": [
"ROLE_USER"
]
}Get the current user
Required permissions:user:readcurl -X GET \
/user/me \
--header "Authorization: Bearer <token>"{
"user": {
"firstName": "John",
"lastName": "Doe",
"email": "jsmith@example.com",
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ"
},
"account": {
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ"
},
"tenant": {
"name": "ACME",
"legalCompanyName": "Acme Inc.",
"id": "01F9Z3ZJXZQZJZJZJZJZJZJZJZ",
"username": "acme"
},
"roles": [
"ROLE_USER"
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
War diese Seite hilfreich?