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"
import requests
url = "https://api.elevenlabs8.com/api/users/me/"
headers = {
"X-API-KEY": "your_api_key_here"
}
response = requests.get(url, headers=headers)
print(response.json())
const fetch = require('node-fetch');
const url = 'https://api.elevenlabs8.com/api/users/me/';
const headers = {
'X-API-KEY': 'your_api_key_here'
};
fetch(url, { headers })
.then(response => response.json())
.then(data => console.log(data));
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
| Property | Type | Description |
|---|---|---|
id | integer | Unique user identifier |
email | string | User email address |
first_name | string | User first name |
last_name | string | User last name |
phone_number | string | User phone number |
avatar | string | URL to user avatar image |
date_joined | string | User registration date |
date_modified | string | Last modification date |
subscription | object | Active subscription information |
is_reseller | boolean | Whether user is a reseller |
is_active | boolean | Whether user account is active |
is_new_user | boolean | Whether user is new |
Subscription Properties
| Property | Type | Description |
|---|---|---|
id | integer | Subscription identifier |
user | integer | User ID |
plan_duration | object | Plan duration details |
name | string | Plan name |
start_date | string | Subscription start date |
end_date | string | Subscription end date |
credits_allocated | integer | Total credits allocated |
credits_used | integer | Credits used so far |
is_active | boolean | Whether subscription is active |
remaining_credits | integer | Remaining credits |
is_expired | boolean | Whether subscription is expired |
created_at | string | Subscription creation date |
updated_at | string | Last update date |
Plan Duration Properties
| Property | Type | Description |
|---|---|---|
id | integer | Plan duration identifier |
plan | object | Plan details |
duration_months | integer | Duration in months |
price | float | Plan price |
credits | integer | Credits included |
is_active | boolean | Whether plan is active |
Plan Properties
| Property | Type | Description |
|---|---|---|
id | integer | Plan identifier |
name | string | Plan name |
description | string | Plan description |