curl -X GET "https://api.elevenlabs8.com/api/users/me/" \
  -H "X-API-KEY: your_api_key_here"
{
  "id": 123,
  "email": "user@example.com",
  "first_name": "John",
  "last_name": "Doe",
  "phone_number": "+1234567890",
  "avatar": "https://api.elevenlabs8.com/media/avatars/user.jpg",
  "date_joined": "2024-01-01T12:00:00Z",
  "date_modified": "2024-01-15T10:30:00Z",
  "subscription": {
    "id": 456,
    "user": 123,
    "plan_duration": {
      "id": 1,
      "plan": {
        "id": 1,
        "name": "Pro Plan",
        "description": "Professional subscription plan"
      },
      "duration_months": 1,
      "price": 29.99,
      "credits": 1000,
      "is_active": true
    },
    "name": "Pro Plan",
    "start_date": "2024-01-01T00:00:00Z",
    "end_date": "2024-02-01T00:00:00Z",
    "credits_allocated": 1000,
    "credits_used": 150,
    "is_active": true,
    "remaining_credits": 850,
    "is_expired": false,
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  },
  "is_reseller": false,
  "is_active": true,
  "is_new_user": false
}

Get User Profile

Retrieve the current user’s profile and subscription information.
curl -X GET "https://api.elevenlabs8.com/api/users/me/" \
  -H "X-API-KEY: your_api_key_here"

Response

{
  "id": 123,
  "email": "user@example.com",
  "first_name": "John",
  "last_name": "Doe",
  "phone_number": "+1234567890",
  "avatar": "https://api.elevenlabs8.com/media/avatars/user.jpg",
  "date_joined": "2024-01-01T12:00:00Z",
  "date_modified": "2024-01-15T10:30:00Z",
  "subscription": {
    "id": 456,
    "user": 123,
    "plan_duration": {
      "id": 1,
      "plan": {
        "id": 1,
        "name": "Pro Plan",
        "description": "Professional subscription plan"
      },
      "duration_months": 1,
      "price": 29.99,
      "credits": 1000,
      "is_active": true
    },
    "name": "Pro Plan",
    "start_date": "2024-01-01T00:00:00Z",
    "end_date": "2024-02-01T00:00:00Z",
    "credits_allocated": 1000,
    "credits_used": 150,
    "is_active": true,
    "remaining_credits": 850,
    "is_expired": false,
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  },
  "is_reseller": false,
  "is_active": true,
  "is_new_user": false
}

User Properties

PropertyTypeDescription
idintegerUnique user identifier
emailstringUser email address
first_namestringUser first name
last_namestringUser last name
phone_numberstringUser phone number
avatarstringURL to user avatar image
date_joinedstringUser registration date
date_modifiedstringLast modification date
subscriptionobjectActive subscription information
is_resellerbooleanWhether user is a reseller
is_activebooleanWhether user account is active
is_new_userbooleanWhether user is new

Subscription Properties

PropertyTypeDescription
idintegerSubscription identifier
userintegerUser ID
plan_durationobjectPlan duration details
namestringPlan name
start_datestringSubscription start date
end_datestringSubscription end date
credits_allocatedintegerTotal credits allocated
credits_usedintegerCredits used so far
is_activebooleanWhether subscription is active
remaining_creditsintegerRemaining credits
is_expiredbooleanWhether subscription is expired
created_atstringSubscription creation date
updated_atstringLast update date

Plan Duration Properties

PropertyTypeDescription
idintegerPlan duration identifier
planobjectPlan details
duration_monthsintegerDuration in months
pricefloatPlan price
creditsintegerCredits included
is_activebooleanWhether plan is active

Plan Properties

PropertyTypeDescription
idintegerPlan identifier
namestringPlan name
descriptionstringPlan description