Skip to content

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

FieldTypeDescription
uidstringUnique user identifier
emailstringUser's email address
displayNamestring | nullUser's display name
photoURLstring | nullProfile picture URL
createdAtstringAccount creation date (ISO 8601)
tokensstringCredits remaining for the user
customFieldsobjectCustom user attributes
activePlansarrayActive subscription plans