> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# यूज़र पाएं

GET https://api.elevenlabs.io/v1/user

यूज़र की जानकारी पाता है

Reference: https://elevenlabs.io/docs/api-reference/user/get

## Servers

- `https://api.elevenlabs.io` (Production, default)
- `https://api.us.elevenlabs.io` (Production US)
- `https://api.eu.residency.elevenlabs.io` (Production EU)
- `https://api.in.residency.elevenlabs.io` (Production India)
- `https://api.sg.residency.elevenlabs.io` (Production Singapore)

## Response

### 200

सफल रिस्पॉन्स

- `user_id` (string, required) — यूज़र का यूनीक आइडेंटिफ़ायर।
- `workspace_id` (string, required) — उस वर्कस्पेस का विशिष्ट पहचानकर्ता, जिससे इस यूज़र की API key संबद्ध है।
- `subscription` (SubscriptionResponseModel, required) — यूज़र की सदस्यता का विवरण।
- `is_onboarding_completed` (boolean, required) — क्या यूज़र की ऑनबोर्डिंग पूरी हो गई है।
- `is_onboarding_checklist_completed` (boolean, required) — क्या यूज़र की ऑनबोर्डिंग चेकलिस्ट पूरी हो गई है।
- `created_at` (integer, required) — यूज़र बनने का Unix टाइमस्टैंप। अगर यूज़र Unix टाइमस्टैंप जोड़े जाने से पहले बना था, तो 0।
- `seat_type` (enum, required) — यूज़र का सीट प्रकार।
  - Allowed values: `workspace_admin`, `workspace_member`, `workspace_lite_member`
- `is_new_user` (boolean, required, deprecated) — क्या यूज़र नया है। यह फ़ील्ड अप्रचलित है और भविष्य में हटा दी जाएगी। इसके बजाय 'created_at' का इस्तेमाल करें।
- `can_use_delayed_payment_methods` (boolean, required, deprecated) — यह फ़ील्ड डिप्रिकेटेड है और भविष्य के किसी मेजर वर्ज़न में हटा दी जाएगी। इसकी जगह subscription.trust_on_invoice_creation इस्तेमाल करें।
- `show_compliance_terms` (boolean, optional, default: false) — ऑनबोर्डिंग के दौरान अनुपालन शर्तें (ToS, प्राइवेसी पॉलिसी, बायोमेट्रिक सहमति) दिखानी हैं या नहीं। मार्केटिंग साइट से साइन अप करने वाले यूज़र्स के लिए सेट करें।
- `first_name` (string, optional, nullable) — यूज़र का पहला नाम।
- `is_api_key_hashed` (boolean, optional, default: false) — क्या यूज़र की API key हैश की गई है।
- `xi_api_key_preview` (string, optional, nullable) — यूज़र की API कुंजी का प्रीव्यू।
- `referral_link_code` (string, optional, nullable) — यूज़र का रेफ़रल लिंक कोड।
- `partnerstack_partner_default_link` (string, optional, nullable) — यूज़र का Partnerstack पार्टनर डिफ़ॉल्ट लिंक।

## Errors

### 422 Unprocessable Entity Error

वैलिडेशन एरर

- `detail` (list of ValidationError, optional)

## Types

### SubscriptionResponseModel

- `tier` (string, required) — यूज़र के सब्सक्रिप्शन का टियर।
- `character_count` (integer, required) — यूज़र द्वारा इस्तेमाल किए गए कैरेक्टर्स की संख्या।
- `character_limit` (integer, required) — मौजूदा बिलिंग अवधि में अनुमत वर्णों की अधिकतम संख्या।
- `max_character_limit_extension` (integer, required, nullable) — डीप्रिकेटेड: `max_credit_limit_extension` इस्तेमाल करें। कैरेक्टर सीमा जितने अधिकतम कैरेक्टर तक पार की जा सकती है। इसका प्रबंधन वर्कस्पेस एडमिन करता है।
- `max_credit_limit_extension` (SubscriptionResponseModelMaxCreditLimitExtension, required) — क्रेडिट सीमा से अधिक इस्तेमाल किए जा सकने वाले क्रेडिट की अधिकतम संख्या। इसे वर्कस्पेस एडमिन प्रबंधित करता है। `"unlimited"` का अर्थ कोई सीमा नहीं है, `0` का अर्थ उपयोग-आधारित बिलिंग बंद है।
- `can_extend_character_limit` (boolean, required) — क्या वर्कस्पेस ओवरेज (उपयोग-आधारित बिलिंग) का उपयोग कर सकता है।
- `allowed_to_extend_character_limit` (boolean, required) — डीप्रिकेटेड: `max_credit_limit_extension != 0` इस्तेमाल करें। यूज़र को अपनी कैरेक्टर सीमा बढ़ाने की अनुमति है या नहीं।
- `voice_slots_used` (integer, required) — यूज़र द्वारा इस्तेमाल किए गए वॉइस स्लॉट्स की संख्या।
- `professional_voice_slots_used` (integer, required) — इस्तेमाल किए गए प्रोफ़ेशनल वॉइस स्लॉट्स की संख्या। कंसॉलिडेटेड बिलिंग के लिए यह ग्रुप के सभी वर्कस्पेसेस की कुल गिनती है; केवल मौजूदा वर्कस्पेस के लिए professional_voice_slots_used_in_workspace देखें।
- `professional_voice_slots_used_in_workspace` (integer, required) — मौजूदा वर्कस्पेस में इस्तेमाल किए गए प्रोफ़ेशनल वॉइस स्लॉट्स की संख्या। कंसॉलिडेटेड बिलिंग के लिए, professional_voice_slots_used ग्रुप के सभी वर्कस्पेसेस की गिनती करता है, जबकि यह केवल मौजूदा वर्कस्पेस की गिनती करता है।
- `voice_limit` (integer, required) — यूज़र के लिए अनुमत वॉइस स्लॉट की अधिकतम संख्या।
- `voice_add_edit_counter` (integer, required) — यूज़र द्वारा इस्तेमाल किए गए वॉइस ऐड/एडिट्स की संख्या।
- `professional_voice_limit` (integer, required) — यूज़र के लिए अनुमत प्रोफ़ेशनल वॉइस की अधिकतम संख्या।
- `can_extend_voice_limit` (boolean, required) — क्या यूज़र अपनी वॉइस सीमा बढ़ा सकता है।
- `can_use_instant_voice_cloning` (boolean, required) — क्या यूज़र instant वॉइस क्लोनिंग का उपयोग कर सकता है।
- `can_use_professional_voice_cloning` (boolean, required) — क्या यूज़र professional वॉइस क्लोनिंग का उपयोग कर सकता है।
- `current_overage` (Price, required) — मौजूदा उपयोग-आधारित अतिरिक्त लागत।
- `status` (enum, required) — यूज़र के सब्सक्रिप्शन का स्टेटस।
  - Allowed values: `trialing`, `active`, `incomplete`, `past_due`, `free`, `free_disabled`
- `next_character_count_reset_unix` (integer, optional, nullable) — अगली कैरेक्टर काउंट रीसेट का Unix टाइमस्टैंप।
- `max_voice_add_edits` (integer, optional, nullable) — यूज़र के लिए अनुमत वॉइस जोड़ने/एडिट करने की अधिकतम संख्या।
- `currency` (enum, optional, nullable) — यूज़र के सब्सक्रिप्शन की मुद्रा।
  - Allowed values: `usd`, `eur`, `inr`, `pln`, `gbp`
- `billing_period` (enum, optional, nullable) — यूज़र के सब्सक्रिप्शन की बिलिंग अवधि।
  - Allowed values: `monthly_period`, `3_month_period`, `6_month_period`, `annual_period`
- `character_refresh_period` (enum, optional, nullable) — यूज़र के सब्सक्रिप्शन की कैरेक्टर रीफ़्रेश अवधि।
  - Allowed values: `monthly_period`, `3_month_period`, `6_month_period`, `annual_period`

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### SubscriptionResponseModelMaxCreditLimitExtension

क्रेडिट सीमा से अधिक इस्तेमाल किए जा सकने वाले क्रेडिट की अधिकतम संख्या। इसे वर्कस्पेस एडमिन प्रबंधित करता है। `"unlimited"` का अर्थ कोई सीमा नहीं है, `0` का अर्थ उपयोग-आधारित बिलिंग बंद है।

### Price

मुद्रा/राशि जोड़ी।

- `amount` (string, required)
- `currency` (enum, required)
  - Allowed values: `usd`, `eur`, `inr`, `pln`, `gbp`

### ValidationErrorLocItems

## Examples

**Response**

```json
{
  "user_id": "1234567890",
  "workspace_id": "0987654321",
  "subscription": {
    "tier": "trial",
    "character_count": 17231,
    "character_limit": 100000,
    "max_character_limit_extension": 10000,
    "max_credit_limit_extension": 10000,
    "can_extend_character_limit": false,
    "allowed_to_extend_character_limit": false,
    "voice_slots_used": 1,
    "professional_voice_slots_used": 0,
    "professional_voice_slots_used_in_workspace": 0,
    "voice_limit": 120,
    "voice_add_edit_counter": 212,
    "professional_voice_limit": 1,
    "can_extend_voice_limit": false,
    "can_use_instant_voice_cloning": true,
    "can_use_professional_voice_cloning": true,
    "current_overage": {
      "amount": "0",
      "currency": "usd"
    },
    "status": "free",
    "next_character_count_reset_unix": 1738356858,
    "max_voice_add_edits": 230,
    "currency": "usd",
    "billing_period": "monthly_period",
    "character_refresh_period": "monthly_period"
  },
  "is_onboarding_completed": true,
  "is_onboarding_checklist_completed": true,
  "created_at": 1753999199,
  "seat_type": "workspace_member",
  "is_new_user": false,
  "can_use_delayed_payment_methods": false,
  "show_compliance_terms": false,
  "first_name": "John",
  "is_api_key_hashed": false
}
```

**SDK Code**

```python
import requests

url = "https://api.elevenlabs.io/v1/user"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.elevenlabs.io/v1/user';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.elevenlabs.io/v1/user"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.elevenlabs.io/v1/user")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.elevenlabs.io/v1/user")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.elevenlabs.io/v1/user');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.elevenlabs.io/v1/user");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/user")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```