Skip to main content
Get the profile information for the currently authenticated user based on their JWT token.

Endpoint

GET /auth/me

Authentication

Requires JWT authentication via Bearer token in the Authorization header.

Request

No request body or parameters required. The user is identified from the JWT token.

Headers

Authorization
string
required
Bearer token obtained from login or registrationFormat: Bearer <jwt_token>

Response

Returns the authenticated user’s profile information.
id
string
Unique user identifier (CUID)
email
string
User’s email address
name
string
User’s full name
displayName
string
User’s display name (shown in meetings)
avatarUrl
string
URL to user’s avatar image (if set)
createdAt
string
ISO 8601 timestamp of account creation
updatedAt
string
ISO 8601 timestamp of last profile update

Example Request

cURL
curl -X GET https://api.neuronmeet.com/auth/me \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Example Response

{
  "id": "clh3x2k5g0001l408xyz12345",
  "email": "[email protected]",
  "name": "Alex Johnson",
  "displayName": "Alex J.",
  "avatarUrl": "https://example.com/avatars/alex.jpg",
  "createdAt": "2024-03-01T10:30:00.000Z",
  "updatedAt": "2024-03-02T14:20:00.000Z"
}

Error Responses

401 Unauthorized

Missing or invalid JWT token.
{
  "statusCode": 401,
  "message": "Unauthorized"
}

Use Cases

  • Display user profile in application header/sidebar
  • Verify authentication status on app load
  • Retrieve user information for client-side state management
  • Check user permissions and role

Build docs developers (and LLMs) love