Fumadocs

Get authenticated user

Find yourself they say. That’s what you can do here.

GET
/me
AuthorizationBasic <token>

Basic HTTP authentication

In: header

Response Body

curl -X GET "https://galaxy.scalar.com/me"
{
  "id": 1,
  "name": "Marc"
}
{
  "type": "https://example.com/errors/not-found",
  "title": "Unauthorized",
  "status": 401,
  "detail": "You are not authorized to access this resource."
}
{
  "type": "https://example.com/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "You are not authorized to access this resource."
}

How is this guide?