---
title: List tenant entitlements
---

[Skip to content](#%5Ftop) 

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

[Tenants](https://developers.cloudflare.com/api/go/resources/tenants)

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

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# List tenant entitlements

client.Tenants.Entitlements.Get(ctx, tenantID) (\*[TenantEntitlements](https://developers.cloudflare.com/api/go/resources/tenants#%28resource%29%20tenants.entitlements%20%3E%20%28model%29%20tenant%5Fentitlements%20%3E%20%28schema%29), error)

GET/tenants/{tenant\_id}/entitlements

List of innate entitlements available for the Tenant.

##### Security

API Email + API Key

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

**Example:**`X-Auth-Email: user@example.com`

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

**Example:**`X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194`

##### ParametersExpand Collapse 

tenantID string

##### ReturnsExpand Collapse 

type TenantEntitlements struct{…}

AllowAddSubdomain TenantEntitlementsAllowAddSubdomain

Type TenantEntitlementsAllowAddSubdomainType

Value bool

AllowAutoAcceptInvites TenantEntitlementsAllowAutoAcceptInvites

Type TenantEntitlementsAllowAutoAcceptInvitesType

Value bool

CNAMESetupAllowed TenantEntitlementsCNAMESetupAllowed

Type TenantEntitlementsCNAMESetupAllowedType

Value bool

CustomEntitlements \[\]TenantEntitlementsCustomEntitlement

Allocation TenantEntitlementsCustomEntitlementsAllocation

One of the following:

type TenantEntitlementsCustomEntitlementsAllocationOrganizationsAPIMaxCountAllocation struct{…}

Type TenantEntitlementsCustomEntitlementsAllocationOrganizationsAPIMaxCountAllocationType

Value int64

type TenantEntitlementsCustomEntitlementsAllocationOrganizationsAPIBoolAllocation struct{…}

Type TenantEntitlementsCustomEntitlementsAllocationOrganizationsAPIBoolAllocationType

Value bool

type TenantEntitlementsCustomEntitlementsAllocationOrganizationsAPINullAllocation struct{…}

Type TenantEntitlementsCustomEntitlementsAllocationOrganizationsAPINullAllocationType

Value unknownOptional

Feature TenantEntitlementsCustomEntitlementsFeature

Key string

MhsCertificateCount TenantEntitlementsMhsCertificateCount

Type TenantEntitlementsMhsCertificateCountType

Value int64

PartialSetupAllowed TenantEntitlementsPartialSetupAllowed

Type TenantEntitlementsPartialSetupAllowedType

Value bool

### List tenant entitlements

Go

HTTPHTTP

TypeScriptTypeScript

PythonPython

GoGo

TerraformTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
    option.WithAPIEmail("user@example.com"),
  )
  tenantEntitlements, err := client.Tenants.Entitlements.Get(context.TODO(), "tenant_id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", tenantEntitlements.AllowAddSubdomain)
}

```

200 example

```
{
  "errors": [],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "allow_add_subdomain": {
      "type": "bool",
      "value": true
    },
    "allow_auto_accept_invites": {
      "type": "bool",
      "value": true
    },
    "cname_setup_allowed": {
      "type": "bool",
      "value": true
    },
    "custom_entitlements": [
      {
        "allocation": {
          "type": "max_count",
          "value": 0
        },
        "feature": {
          "key": "key"
        }
      }
    ],
    "mhs_certificate_count": {
      "type": "max_count",
      "value": 0
    },
    "partial_setup_allowed": {
      "type": "bool",
      "value": true
    }
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "result": {
    "allow_add_subdomain": {
      "type": "bool",
      "value": true
    },
    "allow_auto_accept_invites": {
      "type": "bool",
      "value": true
    },
    "cname_setup_allowed": {
      "type": "bool",
      "value": true
    },
    "custom_entitlements": [
      {
        "allocation": {
          "type": "max_count",
          "value": 0
        },
        "feature": {
          "key": "key"
        }
      }
    ],
    "mhs_certificate_count": {
      "type": "max_count",
      "value": 0
    },
    "partial_setup_allowed": {
      "type": "bool",
      "value": true
    }
  },
  "success": true
}
```