Get Current User
Retrieve the authenticated user's profile and subscription information.
GET https://api.whitebridge.ai/users/me
Response
json
{
"uid": "kXz4Lpa2nPNEtJSM8Rpfr9WHhA33",
"email": "john.doe@example.com",
"displayName": "John Doe",
"photoURL": "https://example.com/photo.jpg",
"createdAt": "2024-03-15T10:30:00Z",
"tokens": "25",
"customFields": {
"company": "Acme Corp",
"role": "HR Manager"
},
"activePlans": [
{
"planId": "pro",
"status": "active",
"expiresAt": "2025-03-15T10:30:00Z"
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
| uid | string | Unique user identifier |
string | User's email address | |
| displayName | string | null | User's display name |
| photoURL | string | null | Profile picture URL |
| createdAt | string | Account creation date (ISO 8601) |
| tokens | string | Credits remaining for the user |
| customFields | object | Custom user attributes |
| activePlans | array | Active subscription plans |