Get authenticated user
GET
/user
const url = 'https://demo.suricatavel.org/api/v1/user';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 https://demo.suricatavel.org/api/v1/user \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”User details
Media typeapplication/json
object
id
integer
name
string
email
string
Example generated
{ "id": 1, "name": "example", "email": "example"}
