Get the signed-in user
GET
/auth/me
const url = 'https://example.com/auth/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/auth/me \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Authentication is required.
Media typeapplication/json
ErrorResponse
object
detail
required
Detail
string
Examplegenerated
{ "detail": "example"}A session token is required.
Media typeapplication/json
ErrorResponse
object
detail
required
Detail
string
Examplegenerated
{ "detail": "example"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}