Skip to main content
GET
/
users
/
{id}
Get User Profile
curl --request GET \
  --url https://api.example.com/users/{id}
{
  "id": "<string>",
  "email": "<string>",
  "displayName": "<string>",
  "avatarUrl": "<string>",
  "createdAt": "<string>"
}
Retrieve user profile information by user ID. This endpoint requires authentication.

Authentication

This endpoint requires a valid JWT token in the Authorization header.

Path Parameters

id
string
required
The unique identifier of the user

Response

id
string
Unique identifier for the user
email
string
User’s email address
displayName
string
User’s display name (optional)
avatarUrl
string
URL to the user’s avatar image (optional)
createdAt
string
ISO 8601 timestamp of when the user account was created

Example Request

curl -X GET https://api.neuronmeet.com/users/clx1a2b3c4d5e6f7g8h9i0j \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example Response

{
  "id": "clx1a2b3c4d5e6f7g8h9i0j",
  "email": "[email protected]",
  "displayName": "John Doe",
  "avatarUrl": "https://example.com/avatars/johndoe.jpg",
  "createdAt": "2024-01-15T10:30:00.000Z"
}

Error Responses

401 Unauthorized

Returned when the JWT token is missing or invalid.
{
  "statusCode": 401,
  "message": "Unauthorized"
}

404 Not Found

Returned when the user with the specified ID does not exist.
{
  "statusCode": 404,
  "message": "User not found"
}

Build docs developers (and LLMs) love