---
title: Organizations
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Organizations

##### [List organizations the user has access to](https://developers.cloudflare.com/api/go/resources/organizations/methods/list)

client.Organizations.List(ctx, query) (\*SinglePage\[[Organization](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>)], error)

GET/organizations

##### [Get organization](https://developers.cloudflare.com/api/go/resources/organizations/methods/get)

client.Organizations.Get(ctx, organizationID) (\*[Organization](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>), error)

GET/organizations/{organization\_id}

##### [Create organization](https://developers.cloudflare.com/api/go/resources/organizations/methods/create)

client.Organizations.New(ctx, body) (\*[Organization](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>), error)

POST/organizations

##### [Update organization](https://developers.cloudflare.com/api/go/resources/organizations/methods/update)

client.Organizations.Update(ctx, organizationID, body) (\*[Organization](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>), error)

PUT/organizations/{organization\_id}

##### [Delete organization](https://developers.cloudflare.com/api/go/resources/organizations/methods/delete)

client.Organizations.Delete(ctx, organizationID) (\*[OrganizationDeleteResponse](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations%20%3E%20(model)%20OrganizationDeleteResponse%20%3E%20(schema)>), error)

DELETE/organizations/{organization\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Organization struct{…}

References an Organization in the Cloudflare data model.

</summary>

ID string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CreateTime Time

formatdate-time

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20create_time">Link to this property</a>

<details>

<summary>

Meta OrganizationMeta

</summary>

HierarchyTags \[]stringOptional

Ordered chain of organization tags from the root organization down to (and including) this organization itself. Root organizations return a single-element array containing their own tag; sub-organizations return <code>[rootTag, ...intermediateTags, parentTag, selfTag]</code>. Useful for constructing authorization scopes that need to cover every ancestor in the hierarchy.

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20hierarchy_tags">Link to this property</a>

ManagedBy stringOptional

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20managed_by">Link to this property</a>

<details>

<summary>

TenantFlags OrganizationMetaTenantFlagsOptional

Enable features for Organizations.

</summary>

AccountCreation string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags%20%3E%20(property)%20account_creation">Link to this property</a>

AccountCreationAppliesTenantDefaults string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags%20%3E%20(property)%20account_creation_applies_tenant_defaults">Link to this property</a>

AccountDeletion string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags%20%3E%20(property)%20account_deletion">Link to this property</a>

AccountMigration string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags%20%3E%20(property)%20account_migration">Link to this property</a>

AccountMobility string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags%20%3E%20(property)%20account_mobility">Link to this property</a>

EnterpriseCapability string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags%20%3E%20(property)%20enterprise_capability">Link to this property</a>

MemberManagement string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags%20%3E%20(property)%20member_management">Link to this property</a>

SubOrgCreation string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags%20%3E%20(property)%20sub_org_creation">Link to this property</a>

</details>

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta%20%3E%20(property)%20tenant_flags">Link to this property</a>

</details>

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

Name string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Parent OrganizationParentOptional

</summary>

ID string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20parent%20%3E%20(property)%20id">Link to this property</a>

Name string

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20parent%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20parent">Link to this property</a>

Profile <a href="https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)">AccountProfile</a>Optional

<a href="#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)%20%3E%20(property)%20profile">Link to this property</a>

</details>

[Link to this property](<#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>)

#### OrganizationsOrganization Accounts

##### [List organization accounts](https://developers.cloudflare.com/api/go/resources/organizations/subresources/organization_accounts/methods/get)

client.Organizations.OrganizationAccounts.Get(ctx, organizationID, query) (\*\[] [TenantAccount](<https://developers.cloudflare.com/api/go/resources/tenants#(resource)%20tenants.accounts%20%3E%20(model)%20tenant_account%20%3E%20(schema)>), error)

GET/organizations/{organization\_id}/accounts

##### ModelsExpand Collapse

<details>

<summary>

type OrganizationAccounts struct{…}

</summary>

ID string

Identifier

maxLength32

minLength32

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

Name string

Account name

maxLength100

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

Type OrganizationAccountsType

</summary>

One of the following:

const OrganizationAccountsTypeStandard OrganizationAccountsType = "standard"

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

const OrganizationAccountsTypeEnterprise OrganizationAccountsType = "enterprise"

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

</details>

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

CreatedOn TimeOptional

Timestamp for the creation of the account

formatdate-time

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

ManagedBy OrganizationAccountsManagedByOptional

Parent container details

</summary>

ParentOrgID stringOptional

ID of the parent Organization, if one exists

maxLength32

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20managed_by%20%3E%20(property)%20parent_org_id">Link to this property</a>

ParentOrgName stringOptional

Name of the parent Organization, if one exists

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20managed_by%20%3E%20(property)%20parent_org_name">Link to this property</a>

</details>

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20managed_by">Link to this property</a>

<details>

<summary>

Settings OrganizationAccountsSettingsOptional

Account settings

</summary>

AbuseContactEmail stringOptional

Sets an abuse contact email to notify for abuse reports.

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20settings%20%3E%20(property)%20abuse_contact_email">Link to this property</a>

EnforceTwofactor boolOptional

Indicates whether membership in this account requires that Two-Factor Authentication is enabled

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20settings%20%3E%20(property)%20enforce_twofactor">Link to this property</a>

</details>

<a href="#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)%20%3E%20(property)%20settings">Link to this property</a>

</details>

[Link to this property](<#(resource)%20organizations.organization_accounts%20%3E%20(model)%20organization_accounts%20%3E%20(schema)>)

#### OrganizationsOrganization Profile

##### [Get organization profile](https://developers.cloudflare.com/api/go/resources/organizations/subresources/organization_profile/methods/get)

client.Organizations.OrganizationProfile.Get(ctx, organizationID) (\*[AccountProfile](<https://developers.cloudflare.com/api/go/resources/accounts#(resource)%20accounts.account_profile%20%3E%20(model)%20account_profile%20%3E%20(schema)>), error)

GET/organizations/{organization\_id}/profile

##### [Modify organization profile.](https://developers.cloudflare.com/api/go/resources/organizations/subresources/organization_profile/methods/update)

client.Organizations.OrganizationProfile.Update(ctx, organizationID, body) error

PUT/organizations/{organization\_id}/profile

##### ModelsExpand Collapse

<details>

<summary>

type OrganizationProfile struct{…}

</summary>

BusinessAddress string

<a href="#(resource)%20organizations.organization_profile%20%3E%20(model)%20organization_profile%20%3E%20(schema)%20%3E%20(property)%20business_address">Link to this property</a>

BusinessEmail string

<a href="#(resource)%20organizations.organization_profile%20%3E%20(model)%20organization_profile%20%3E%20(schema)%20%3E%20(property)%20business_email">Link to this property</a>

BusinessName string

<a href="#(resource)%20organizations.organization_profile%20%3E%20(model)%20organization_profile%20%3E%20(schema)%20%3E%20(property)%20business_name">Link to this property</a>

BusinessPhone string

<a href="#(resource)%20organizations.organization_profile%20%3E%20(model)%20organization_profile%20%3E%20(schema)%20%3E%20(property)%20business_phone">Link to this property</a>

ExternalMetadata string

<a href="#(resource)%20organizations.organization_profile%20%3E%20(model)%20organization_profile%20%3E%20(schema)%20%3E%20(property)%20external_metadata">Link to this property</a>

</details>

[Link to this property](<#(resource)%20organizations.organization_profile%20%3E%20(model)%20organization_profile%20%3E%20(schema)>)

#### OrganizationsMembers

##### [List organization members](https://developers.cloudflare.com/api/go/resources/organizations/subresources/members/methods/list)

client.Organizations.Members.List(ctx, organizationID, query) (\*SinglePage\[[OrganizationMember](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)>)], error)

GET/organizations/{organization\_id}/members

##### [Get organization member](https://developers.cloudflare.com/api/go/resources/organizations/subresources/members/methods/get)

client.Organizations.Members.Get(ctx, organizationID, memberID) (\*[OrganizationMember](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)>), error)

GET/organizations/{organization\_id}/members/{member\_id}

##### [Create organization member](https://developers.cloudflare.com/api/go/resources/organizations/subresources/members/methods/create)

client.Organizations.Members.New(ctx, organizationID, body) (\*[OrganizationMember](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)>), error)

POST/organizations/{organization\_id}/members

##### [Delete organization member](https://developers.cloudflare.com/api/go/resources/organizations/subresources/members/methods/delete)

client.Organizations.Members.Delete(ctx, organizationID, memberID) error

DELETE/organizations/{organization\_id}/members/{member\_id}

##### ModelsExpand Collapse

<details>

<summary>

type OrganizationMember struct{…}

</summary>

ID string

Organization Member ID

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CreateTime Time

formatdate-time

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20create_time">Link to this property</a>

Meta map\[string, unknown]

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20meta">Link to this property</a>

<details>

<summary>

Status OrganizationMemberStatus

</summary>

One of the following:

const OrganizationMemberStatusActive OrganizationMemberStatus = "active"

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const OrganizationMemberStatusPending OrganizationMemberStatus = "pending"

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const OrganizationMemberStatusRejected OrganizationMemberStatus = "rejected"

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const OrganizationMemberStatusCanceled OrganizationMemberStatus = "canceled"

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

UpdateTime Time

formatdate-time

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20update_time">Link to this property</a>

<details>

<summary>

User OrganizationMemberUser

</summary>

ID string

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20user%20%3E%20(property)%20id">Link to this property</a>

Email string

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20user%20%3E%20(property)%20email">Link to this property</a>

Name string

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20user%20%3E%20(property)%20name">Link to this property</a>

TwoFactorAuthenticationEnabled bool

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20user%20%3E%20(property)%20two_factor_authentication_enabled">Link to this property</a>

</details>

<a href="#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)%20%3E%20(property)%20user">Link to this property</a>

</details>

[Link to this property](<#(resource)%20organizations.members%20%3E%20(model)%20organization_member%20%3E%20(schema)>)

#### OrganizationsLogs

#### OrganizationsLogsAudit

##### [Get organization audit logs (Version 2)](https://developers.cloudflare.com/api/go/resources/organizations/subresources/logs/subresources/audit/methods/list)

client.Organizations.Logs.Audit.List(ctx, organizationID, query) (\*CursorPaginationAfter\[[LogAuditListResponse](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations.logs.audit%20%3E%20(model)%20LogAuditListResponse%20%3E%20(schema)>)], error)

GET/organizations/{organization\_id}/logs/audit

##### [Get resource change history from an organization audit log entry (Version 2)](https://developers.cloudflare.com/api/go/resources/organizations/subresources/logs/subresources/audit/methods/history)

client.Organizations.Logs.Audit.History(ctx, organizationID, id, query) (\*\[] [LogAuditHistoryResponse](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations.logs.audit%20%3E%20(model)%20LogAuditHistoryResponse%20%3E%20(schema)>), error)

GET/organizations/{organization\_id}/logs/audit/{id}/history

#### OrganizationsBilling

#### OrganizationsBillingUsage

##### [Get Organization Usage (Version 2, Alpha, Restricted)](https://developers.cloudflare.com/api/go/resources/organizations/subresources/billing/subresources/usage/methods/get)

client.Organizations.Billing.Usage.Get(ctx, organizationID, query) (\*\[] [BillingUsageGetResponse](<https://developers.cloudflare.com/api/go/resources/organizations#(resource)%20organizations.billing.usage%20%3E%20(model)%20BillingUsageGetResponse%20%3E%20(schema)>), error)

GET/organizations/{organization\_id}/billable/usage