---
title: Get Account Entitlements
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Accounts](https://developers.cloudflare.com/api/python/resources/accounts)

[Entitlements](https://developers.cloudflare.com/api/python/resources/accounts/subresources/entitlements)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Get Account Entitlements

accounts.entitlements.list(EntitlementListParams\*\*kwargs) -> SyncSinglePage\[[EntitlementListResponse](<https://developers.cloudflare.com/api/python/resources/accounts#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)>)]

GET/accounts/{account\_id}/entitlements

Returns the list of entitlements (features and their allocations) for a given account. Each entitlement describes a product feature the account is permitted to use and the allocation value (boolean, count, range, enum, or string) that governs its behaviour.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Account Read`

##### ParametersExpand Collapse

account\_id: str

Identifier tag.

maxLength32

minLength32

[Link to this property](<#(resource)%20accounts.entitlements%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20account_id%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

class EntitlementListResponse: …

A single entitlement record for a zone or account.

</summary>

id: str

Entitlement identifier — equal to the feature key.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

allocation: Allocation

Represents the allocation value for an entitlement. The shape of <code>value</code> depends on <code>type</code>: <code>bool</code> uses a boolean, <code>max_count</code> uses an integer, <code>enum_number</code> uses an array of numbers, <code>range</code> uses an object with <code>min</code> and <code>max</code> integer fields, and <code>string</code> uses a string.

</summary>

<details>

<summary>

type: Literal\["bool", "max\_count", "enum\_number", 2 more]

Allocation type discriminator.

</summary>

One of the following:

"bool"

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"max\_count"

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"enum\_number"

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

"range"

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

"string"

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

value: AllocationValue

Contains the allocation value whose concrete type the <code>type</code> field determines: bool yields a boolean, max\_count yields an integer, enum\_number yields an array of numbers, range yields an object with <code>min</code> and <code>max</code>, and string yields a string.

</summary>

One of the following:

bool

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%200">Link to this property</a>

int

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%201">Link to this property</a>

str

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%202">Link to this property</a>

List\[float]

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class AllocationValueUnionMember4: …

</summary>

max: int

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%204%20%3E%20(property)%20max">Link to this property</a>

min: int

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%204%20%3E%20(property)%20min">Link to this property</a>

</details>

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value%20%3E%20(variant)%204">Link to this property</a>

</details>

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20allocation">Link to this property</a>

created\_date: str

ISO 8601 timestamp (microsecond precision, no timezone offset) when the entitlement was created. Format: <code>YYYY-MM-DDTHH:MM:SS.ffffff</code>.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20created_date">Link to this property</a>

deleted\_date: str

ISO 8601 timestamp when the entitlement was deleted, or empty string if not deleted.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20deleted_date">Link to this property</a>

edited\_date: str

ISO 8601 timestamp (microsecond precision, no timezone offset) when the entitlement was last edited.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20edited_date">Link to this property</a>

<details>

<summary>

feature: Feature

Describes a product feature associated with an entitlement.

</summary>

id: int

Numeric identifier of the feature.

formatint64

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20feature%20%3E%20(property)%20id">Link to this property</a>

feature\_set: str

The logical grouping (set) this feature belongs to.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20feature%20%3E%20(property)%20feature_set">Link to this property</a>

key: str

Unique string key for the feature.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20feature%20%3E%20(property)%20key">Link to this property</a>

name: str

Human-readable name of the feature.

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20feature%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)%20%3E%20(property)%20feature">Link to this property</a>

</details>

[Link to this property](<#(resource)%20accounts.entitlements%20%3E%20(model)%20entitlement_list_response%20%3E%20(schema)>)

### Get Account Entitlements

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
page = client.accounts.entitlements.list(
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
page = page.result[0]
print(page.id)
```

200 example

```
{
  "errors": [],
  "messages": [],
  "result": [
    {
      "allocation": {
        "type": "string",
        "value": "default"
      },
      "created_date": "2024-01-01T00:00:00.000000",
      "deleted_date": "",
      "edited_date": "2024-01-01T00:00:01.000000",
      "feature": {
        "feature_set": "deployment",
        "id": 99,
        "key": "deployment.cohort",
        "name": "Deployment Cohort"
      },
      "id": "deployment.cohort"
    },
    {
      "allocation": {
        "type": "range",
        "value": {
          "max": 86400,
          "min": 10
        }
      },
      "created_date": "2021-09-17T21:02:02.000000",
      "deleted_date": "",
      "edited_date": "2021-09-17T21:02:10.000000",
      "feature": {
        "feature_set": "rate_limiting",
        "id": 33,
        "key": "rate_limiting.timeout_bounds",
        "name": "rate_limiting.timeout_bounds"
      },
      "id": "rate_limiting.timeout_bounds"
    }
  ],
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [],
  "messages": [],
  "result": [
    {
      "allocation": {
        "type": "string",
        "value": "default"
      },
      "created_date": "2024-01-01T00:00:00.000000",
      "deleted_date": "",
      "edited_date": "2024-01-01T00:00:01.000000",
      "feature": {
        "feature_set": "deployment",
        "id": 99,
        "key": "deployment.cohort",
        "name": "Deployment Cohort"
      },
      "id": "deployment.cohort"
    },
    {
      "allocation": {
        "type": "range",
        "value": {
          "max": 86400,
          "min": 10
        }
      },
      "created_date": "2021-09-17T21:02:02.000000",
      "deleted_date": "",
      "edited_date": "2021-09-17T21:02:10.000000",
      "feature": {
        "feature_set": "rate_limiting",
        "id": 33,
        "key": "rate_limiting.timeout_bounds",
        "name": "rate_limiting.timeout_bounds"
      },
      "id": "rate_limiting.timeout_bounds"
    }
  ],
  "success": true
}
```