GET /users/profile

Get the current user's profile information

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • createdAt string
    • email string Required
    • id string
    • updatedAt string
    • username string Required

      Maximum length is 50.

  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • code integer
    • error string
    • message string
GET /users/profile
curl \
 --request GET 'https://localhost/api/v1/users/profile'
Response examples (200)
{
  "createdAt": "string",
  "email": "john@example.com",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "updatedAt": "string",
  "username": "john_doe"
}
Response examples (500)
{
  "code": 400,
  "error": "Invalid input",
  "message": "The provided data is invalid"
}