# Profile

::: info
Har bir javob umumiy konvertda qaytadi — `code`, `message`, `messages`, `status_code`, `time` — foydali yuk esa `data` ichida. Quyidagi jadvallar faqat `data` ichini tavsiflaydi.
:::

## GET /profile/getMe

Get profile

**Kerakli ruxsat:** yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · [ruxsatlar qanday ishlaydi](https://docs.bito.uz/api/permissions.md)

**So‘rov namunasi**

::: code-group

```bash [curl]
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/profile/getMe' \
  -H "api-key: $BITO_API_KEY"
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/profile/getMe', {
  method: 'GET',
  headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "GET",
    "https://api.bito.uz/integration-api/integration/api/v2/profile/getMe",
    headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())
```

```php [PHP]
<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/profile/getMe');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**So‘rov tanasi**

So‘rov tanasi talab qilinmaydi.

**Javob**

| Maydon | Tur | Tavsif |
|---|---|---|
| `id` | `string` | User ID |
| `user_name` | `string` | User name |
| `is_demo` | `boolean` | User demo status |
| `status` | `string` | User status. Mumkin qiymatlar: `active`, `blocked`, `warning`. Standart: `"active"` |
| `expiration_date` | `string (date-time)` | User expiration date |
| `license_count` | `number` | Number of licenses |

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "id": "string",
    "user_name": "string",
    "is_demo": false,
    "status": "active",
    "expiration_date": "2025-05-01T12:00:00Z",
    "license_count": 0
  },
  "time": "2025-05-01T12:00:00Z"
}
```

---

*Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.*
