# Get effective plan and feature map

> Source: https://elaichi.ai/docs/api-reference/entitlements/organization/getorganizationentitlements/

`GET /organization/{id}/entitlements`

Resource: **Organization** · API: **Entitlements**

## Path parameters

- **`id`** _(string, required)_
  Organization id (`org_…`).

## Response body

- **`plan`** _(string,null)_
  Effective plan. `null` means locked — gated routes answer 403 `subscription_required`.
  Allowed: `gold`, `black`, `null`
- **`trial_ends_at`** _(string,null)_
- **`trial_active`** _(boolean)_
  Local pre-Checkout Gold trial only.
- **`trial_indefinite`** _(boolean)_
  Staff-granted indefinite trial: unlocked with no end date. `trial_active` stays false — there is no clock to count down.
- **`features`** _(object)_
  Feature key → allowed. A key that is absent is not offered to this organization — not an error. The response can carry further informational fields beyond those listed here.

## Code examples

### curl

```bash
curl -X GET 'https://api.elaichi.ai/organization/<id>/entitlements' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/organization/<id>/entitlements', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/organization/<id>/entitlements"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())
```
