Skip to main content

Get current user

Returns the profile of the user associated with the bearer token (password hash redacted).

Request​

Method: GET
Path: /api/users/me

Authentication: Not required

Responses​

200 - User profile​

401 - Unauthenticated​

404 - User not found​

Examples​

cURL​

curl -X GET \
-H "Content-Type: application/json" \
http://localhost:3000/api/users/me

JavaScript​

const response = await fetch('http://localhost:3000/api/users/me', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.