Skip to main content
GET
/
api
/
user
/
me
Get Current User
curl --request GET \
  --url https://api.example.com/api/user/me
{
  "id": 123,
  "email": "<string>",
  "language": "<string>"
}
Returns the profile information for the currently authenticated user.

Authentication

Requires Bearer token authentication.

Response

id
integer
required
The unique identifier of the user
email
string
required
The user’s email address
language
string
required
The user’s preferred language (pt-BR, en-US, or es). Defaults to pt-BR if not set.

Example Request

curl -X GET https://api.example.com/api/user/me \
  -H "Authorization: Bearer YOUR_TOKEN_HERE"

Example Response

{
  "id": 123,
  "email": "[email protected]",
  "language": "pt-BR"
}

Error Responses

401 Unauthorized
Authentication token is missing or invalid
{
  "error": "Unauthorized",
  "message": "Invalid or missing authentication token"
}
404 Not Found
The user account was not found
{
  "error": "Not Found",
  "message": "User not found"
}

Notes

  • This endpoint is useful for retrieving the current user’s information after authentication
  • The password field is never included in the response for security reasons
  • The Gemini API key status is not included in this response (use /api/ai/key-status instead)

Build docs developers (and LLMs) love