Retrieve current user
GET
/v1/auth/users/me/
const url = 'https://example.com/v1/auth/users/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 https://example.com/v1/auth/users/me/ \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
object
email
required
Email address
string format: email
id
required
string format: uuid
username
required
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
string
Examplegenerated
{ "email": "hello@example.com"}