Who the token belongs to
GET
/me
const url = 'http://localhost:8100/api/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8100/api/v1/me \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Token owner
Media typeapplication/json
object
data
object
id
integer
name
string
email
string format: email
role
string
locale
string
abilities
Array<string>
Example
{ "data": { "role": "admin", "locale": "en", "abilities": [ "read" ] }}Missing or invalid token
Media typeapplication/json
object
message
string
errors
object
key
additional properties
Array<string>
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}