---
title: Organizations
---

[Skip to content](#_top)

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

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/typescript/resources/organizations/methods/list)

client.organizations.list(OrganizationListParams {id, containing, name, 3 more } query?, RequestOptionsoptions?): SinglePage< [Organization](<https://developers.cloudflare.com/api/typescript/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>) {id, create\_time, meta, 3 more } >

GET/organizations

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

client.organizations.get(stringorganizationID, RequestOptionsoptions?): [Organization](<https://developers.cloudflare.com/api/typescript/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>) {id, create\_time, meta, 3 more }

GET/organizations/{organization\_id}

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

client.organizations.create(OrganizationCreateParams {name, parent, profile } body, RequestOptionsoptions?): [Organization](<https://developers.cloudflare.com/api/typescript/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>) {id, create\_time, meta, 3 more }

POST/organizations

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

client.organizations.update(stringorganizationID, OrganizationUpdateParams {name, parent, profile } body, RequestOptionsoptions?): [Organization](<https://developers.cloudflare.com/api/typescript/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization%20%3E%20(schema)>) {id, create\_time, meta, 3 more }

PUT/organizations/{organization\_id}

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

client.organizations.delete(stringorganizationID, RequestOptionsoptions?): [OrganizationDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/organizations#(resource)%20organizations%20%3E%20(model)%20organization_delete_response%20%3E%20(schema)>) {id }

DELETE/organizations/{organization\_id}

##### ModelsExpand Collapse

<details>

<summary>

Organization {id, create\_time, meta, 3 more }

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>

create\_time: string

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: Meta {hierarchy\_tags, managed\_by, tenant\_flags }

</summary>

hierarchy\_tags?: Array&lt;string&gt;

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>

managed\_by?: string

<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>

tenant\_flags?: TenantFlags {account\_creation, account\_creation\_applies\_tenant\_defaults, account\_deletion, 5 more }

Enable features for Organizations.

</summary>

account\_creation: 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>

account\_creation\_applies\_tenant\_defaults: 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>

account\_deletion: 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>

account\_migration: 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>

account\_mobility: 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>

enterprise\_capability: 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>

member\_management: 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>

sub\_org\_creation: 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?: Parent {id, name }

</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>

<details>

<summary>

profile?: Profile {business\_address, business\_email, business\_name, 2 more }

</summary>

business\_address: string

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

business\_email: string

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

business\_name: string

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

business\_phone: string

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

external\_metadata: string

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

</details>

<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)>)

<details>

<summary>

OrganizationDeleteResponse {id }

</summary>

id: string

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

</details>

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

#### OrganizationsOrganization Accounts

#### OrganizationsOrganization Profile

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

client.organizations.organizationProfile.get(stringorganizationID, RequestOptionsoptions?): Result {business\_address, business\_email, business\_name, 2 more }

GET/organizations/{organization\_id}/profile

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

client.organizations.organizationProfile.update(stringorganizationID, OrganizationProfileUpdateParams {business\_address, business\_email, business\_name, 2 more } body, RequestOptionsoptions?): void

PUT/organizations/{organization\_id}/profile

##### ModelsExpand Collapse

<details>

<summary>

OrganizationProfile {business\_address, business\_email, business\_name, 2 more }

</summary>

business\_address: 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>

business\_email: 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>

business\_name: 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>

business\_phone: 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>

external\_metadata: 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

#### OrganizationsLogs

#### OrganizationsLogsAudit

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

client.organizations.logs.audit.list(stringorganizationID, AuditListParams {before, since, id, 20 more } query, RequestOptionsoptions?): CursorPaginationAfter< [AuditListResponse](<https://developers.cloudflare.com/api/typescript/resources/organizations#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)>) {id, action, actor, 3 more } >

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

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

client.organizations.logs.audit.history(stringid, AuditHistoryParams {organization\_id, action\_time, before, 4 more } params, RequestOptionsoptions?): [AuditHistoryResponse](<https://developers.cloudflare.com/api/typescript/resources/organizations#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)>) {id, action, actor, 3 more }

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

##### ModelsExpand Collapse

<details>

<summary>

AuditListResponse {id, action, actor, 3 more }

</summary>

id?: string

A unique identifier for the audit log entry.

maxLength32

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

<details>

<summary>

action?: Action {description, result, time, type }

Provides information about the action performed.

</summary>

description?: string

A short description of the action performed.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(property)%20description">Link to this property</a>

result?: string

The result of the action, indicating success or failure.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(property)%20result">Link to this property</a>

time?: string

A timestamp indicating when the action was logged.

formatdate-time

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action%20%3E%20(property)%20time">Link to this property</a>

type?: string

A short string that describes the action that was performed.

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

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

actor?: Actor {id, context, email, 4 more }

Provides details about the actor who performed the action.

</summary>

id?: string

The ID of the actor who performed the action. If a user performed the action, this will be their User ID.

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

<details>

<summary>

context?: "api"| "api\_key"| "api\_token"| 3 more

The context in which the action was initiated.

- <code>api</code>: The action was performed through the API. The specific credential type was not recorded.
- <code>api_key</code>: The action was authenticated with a Cloudflare Global API Key.
- <code>api_token</code>: The action was authenticated with an API token.
- <code>dash</code>: The action was performed through the Cloudflare dashboard.
- <code>oauth</code>: The action was authenticated with an OAuth token.
- <code>origin_ca_key</code>: The action was authenticated with an Origin CA key.

</summary>

One of the following:

"api"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%200">Link to this property</a>

"api\_key"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%201">Link to this property</a>

"api\_token"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%202">Link to this property</a>

"dash"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%203">Link to this property</a>

"oauth"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%204">Link to this property</a>

"origin\_ca\_key"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20context">Link to this property</a>

email?: string

The email of the actor who performed the action.

formatemail

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20email">Link to this property</a>

ip\_address?: string

The IP address of the request that performed the action.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20ip_address">Link to this property</a>

token\_id?: string

The API token ID when the actor context is an api\_token or oauth.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20token_id">Link to this property</a>

token\_name?: string

The API token name when the actor context is an api\_token or oauth.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20token_name">Link to this property</a>

<details>

<summary>

type?: "cloudflare\_admin"| "system"| "user"

The type of actor.

</summary>

One of the following:

"cloudflare\_admin"

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

"system"

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

"user"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

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

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20actor">Link to this property</a>

<details>

<summary>

organization?: Organization {id }

Contains organization related information.

</summary>

id?: string

A unique identifier for the organization.

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

</details>

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

<details>

<summary>

raw?: Raw {cf\_ray\_id, method, status\_code, 2 more }

Provides raw information about the request and response.

</summary>

cf\_ray\_id?: string

The Cloudflare Ray ID for the request.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20cf_ray_id">Link to this property</a>

method?: string

The HTTP method of the request.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20method">Link to this property</a>

status\_code?: number

The HTTP response status code returned by the API.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20status_code">Link to this property</a>

uri?: string

The URI of the request.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20uri">Link to this property</a>

user\_agent?: string

The client’s user agent string sent with the request.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw%20%3E%20(property)%20user_agent">Link to this property</a>

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20raw">Link to this property</a>

<details>

<summary>

resource?: Resource {id, product, request, 3 more }

Provides details about the affected resource.

</summary>

id?: string

The unique identifier for the affected resource.

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

product?: string

The Cloudflare product associated with the resource.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20resource%20%3E%20(property)%20product">Link to this property</a>

request?: unknown

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20resource%20%3E%20(property)%20request">Link to this property</a>

response?: unknown

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20resource%20%3E%20(property)%20response">Link to this property</a>

scope?: unknown

The scope of the resource.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_list_response%20%3E%20(schema)%20%3E%20(property)%20resource%20%3E%20(property)%20scope">Link to this property</a>

type?: string

The type of the resource.

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

</details>

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

</details>

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

<details>

<summary>

AuditHistoryResponse = Array&lt;AuditHistoryResponseItem&gt;

</summary>

id?: string

A unique identifier for the audit log entry.

maxLength32

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

<details>

<summary>

action?: Action {description, result, time, type }

Provides information about the action performed.

</summary>

description?: string

A short description of the action performed.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(property)%20description">Link to this property</a>

result?: string

The result of the action, indicating success or failure.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(property)%20result">Link to this property</a>

time?: string

A timestamp indicating when the action was logged.

formatdate-time

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action%20%3E%20(property)%20time">Link to this property</a>

type?: string

A short string that describes the action that was performed.

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

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20action">Link to this property</a>

<details>

<summary>

actor?: Actor {id, context, email, 4 more }

Provides details about the actor who performed the action.

</summary>

id?: string

The ID of the actor who performed the action. If a user performed the action, this will be their User ID.

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

<details>

<summary>

context?: "api"| "api\_key"| "api\_token"| 3 more

The context in which the action was initiated.

- <code>api</code>: The action was performed through the API. The specific credential type was not recorded.
- <code>api_key</code>: The action was authenticated with a Cloudflare Global API Key.
- <code>api_token</code>: The action was authenticated with an API token.
- <code>dash</code>: The action was performed through the Cloudflare dashboard.
- <code>oauth</code>: The action was authenticated with an OAuth token.
- <code>origin_ca_key</code>: The action was authenticated with an Origin CA key.

</summary>

One of the following:

"api"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%200">Link to this property</a>

"api\_key"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%201">Link to this property</a>

"api\_token"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%202">Link to this property</a>

"dash"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%203">Link to this property</a>

"oauth"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%204">Link to this property</a>

"origin\_ca\_key"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20context">Link to this property</a>

email?: string

The email of the actor who performed the action.

formatemail

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20email">Link to this property</a>

ip\_address?: string

The IP address of the request that performed the action.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20ip_address">Link to this property</a>

token\_id?: string

The API token ID when the actor context is an api\_token or oauth.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20token_id">Link to this property</a>

token\_name?: string

The API token name when the actor context is an api\_token or oauth.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20token_name">Link to this property</a>

<details>

<summary>

type?: "cloudflare\_admin"| "system"| "user"

The type of actor.

</summary>

One of the following:

"cloudflare\_admin"

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

"system"

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

"user"

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

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

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20actor">Link to this property</a>

<details>

<summary>

organization?: Organization {id }

Contains organization related information.

</summary>

id?: string

A unique identifier for the organization.

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

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20organization">Link to this property</a>

<details>

<summary>

raw?: Raw {cf\_ray\_id, method, status\_code, 2 more }

Provides raw information about the request and response.

</summary>

cf\_ray\_id?: string

The Cloudflare Ray ID for the request.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20cf_ray_id">Link to this property</a>

method?: string

The HTTP method of the request.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20method">Link to this property</a>

status\_code?: number

The HTTP response status code returned by the API.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20status_code">Link to this property</a>

uri?: string

The URI of the request.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20uri">Link to this property</a>

user\_agent?: string

The client’s user agent string sent with the request.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw%20%3E%20(property)%20user_agent">Link to this property</a>

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20raw">Link to this property</a>

<details>

<summary>

resource?: Resource {id, product, request, 3 more }

Provides details about the affected resource.

</summary>

id?: string

The unique identifier for the affected resource.

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

product?: string

The Cloudflare product associated with the resource.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20product">Link to this property</a>

request?: unknown

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20request">Link to this property</a>

response?: unknown

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20response">Link to this property</a>

scope?: unknown

The scope of the resource.

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource%20%3E%20(property)%20scope">Link to this property</a>

type?: string

The type of the resource.

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

</details>

<a href="#(resource)%20organizations.logs.audit%20%3E%20(model)%20audit_history_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20resource">Link to this property</a>

</details>

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

#### OrganizationsBilling

#### OrganizationsBillingUsage

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

client.organizations.billing.usage.get(stringorganizationID, UsageGetParams {from, to } query?, RequestOptionsoptions?): [UsageGetResponse](<https://developers.cloudflare.com/api/typescript/resources/organizations#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)>) {ChargeCategory, ChargeDescription, ChargeFrequency, 33 more }

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

##### ModelsExpand Collapse

<details>

<summary>

UsageGetResponse = Array&lt;UsageGetResponseItem&gt;

Contains the array of cost and usage records.

</summary>

ChargeCategory: "Usage"

Highest-level classification of a charge based on the nature of how it gets billed. Currently only “Usage” is supported.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargeCategory">Link to this property</a>

ChargeDescription: string

Self-contained summary of the charge’s purpose and price.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargeDescription">Link to this property</a>

ChargeFrequency: "Usage-Based"

Indicates how often a charge occurs. Currently only “Usage-Based” is supported.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargeFrequency">Link to this property</a>

ChargePeriodEnd: string

Exclusive end of the time interval during which the usage was consumed.

formatdate-time

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargePeriodEnd">Link to this property</a>

ChargePeriodStart: string

Inclusive start of the time interval during which the usage was consumed.

formatdate-time

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargePeriodStart">Link to this property</a>

ConsumedQuantity: number

Measured usage amount within the charge period. Reflects raw metered consumption before pricing transformations.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ConsumedQuantity">Link to this property</a>

ConsumedUnit: string

Unit of measure for the consumed quantity (e.g., “GB”, “Requests”, “vCPU-Hours”).

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ConsumedUnit">Link to this property</a>

HostProviderName: string

Name of the entity providing the underlying infrastructure or platform.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20HostProviderName">Link to this property</a>

InvoiceIssuerName: string

Name of the entity responsible for invoicing for the services consumed.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20InvoiceIssuerName">Link to this property</a>

ServiceProviderName: string

Name of the entity that made the services available for purchase.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ServiceProviderName">Link to this property</a>

x\_BillableMetricId: string

The unique identifier for the billable metric in the Cloudflare catalog. Cloudflare extension; replaces FOCUS SkuId.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20x_BillableMetricId">Link to this property</a>

BilledCost?: number| null

A charge serving as the basis for invoicing, inclusive of all reduced rates and discounts while excluding the amortization of upfront charges (one-time or recurring).

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BilledCost">Link to this property</a>

BillingAccountId?: string

Public identifier of the Cloudflare account (account tag). Omitted when account is not part of the requested grouping, and always omitted for usage measured at contract level, even when grouping by account: that usage is returned as its own record with no account.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingAccountId">Link to this property</a>

BillingAccountName?: string

Display name of the Cloudflare account. Omitted when account is not part of the requested grouping, and for usage measured at contract level.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingAccountName">Link to this property</a>

BillingCurrency?: string| null

Currency that a charge was billed in (ISO 4217).

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingCurrency">Link to this property</a>

BillingPeriodEnd?: string| null

Exclusive end of the billing cycle that contains this usage record.

formatdate-time

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingPeriodEnd">Link to this property</a>

BillingPeriodStart?: string| null

Inclusive start of the billing cycle that contains this usage record.

formatdate-time

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20BillingPeriodStart">Link to this property</a>

ChargeClass?: "Correction"| null

Indicates whether the row represents a correction to one or more charges invoiced in a previous billing period.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ChargeClass">Link to this property</a>

ContractedCost?: number| null

Cost calculated by multiplying ContractedUnitPrice and the corresponding PricingQuantity.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ContractedCost">Link to this property</a>

ContractedUnitPrice?: number| null

The agreed-upon unit price for a single PricingUnit of the associated billable metric, inclusive of negotiated discounts, if present, while excluding any other discounts.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ContractedUnitPrice">Link to this property</a>

EffectiveCost?: number| null

The amortized cost of the charge after applying all reduced rates, discounts, and the applicable portion of relevant, prepaid purchases (one-time or recurring) that covered the charge.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20EffectiveCost">Link to this property</a>

ListCost?: number| null

Cost calculated by multiplying ListUnitPrice and the corresponding PricingQuantity.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ListCost">Link to this property</a>

ListUnitPrice?: number| null

Suggested provider-published unit price for a single PricingUnit of the associated billable metric, exclusive of any discounts.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20ListUnitPrice">Link to this property</a>

PricingQuantity?: number| null

Volume of a given service used or purchased, based on the PricingUnit.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20PricingQuantity">Link to this property</a>

PricingUnit?: string| null

Provider-specified measurement unit for determining unit prices, indicating how the provider rates measured usage after applying pricing rules like block pricing.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20PricingUnit">Link to this property</a>

RegionId?: string| null

Provider-assigned identifier for an isolated geographic area where a service is provided.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20RegionId">Link to this property</a>

RegionName?: string| null

Name of an isolated geographic area where a service is provided.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20RegionName">Link to this property</a>

SubAccountId?: string

Unique identifier assigned to a grouping of services. For Cloudflare, this is the subscription or contract ID.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20SubAccountId">Link to this property</a>

SubAccountName?: string

Name assigned to a grouping of services. For Cloudflare, this is the subscription or contract display name.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20SubAccountName">Link to this property</a>

<details>

<summary>

Tags?: Record&lt;string, string| true&gt;

Tag values for the requested <code>GroupBy</code> keys. Omitted when <code>GroupBy</code> is not provided. Missing keys are omitted, and key-only tags are returned as boolean <code>true</code>. All other tag values are strings.

</summary>

One of the following:

string

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20Tags%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

true

</summary>

true

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20Tags%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(member)%200">Link to this property</a>

</details>

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20Tags%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20Tags">Link to this property</a>

x\_BillableMetricName?: string

The display name of the billable metric. Cloudflare extension; replaces FOCUS SkuMeter.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20x_BillableMetricName">Link to this property</a>

x\_ProductCategoryName?: string

The product category the charge belongs to (e.g., “Developer”, “Cloudflare One”). Cloudflare extension; replaces FOCUS ServiceCategory.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20x_ProductCategoryName">Link to this property</a>

x\_ProductFamilyId?: string

The unique identifier for the product family in the Cloudflare catalog. Cloudflare extension; replaces FOCUS ServiceId.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20x_ProductFamilyId">Link to this property</a>

x\_ProductFamilyName?: string

The product family the charge belongs to (e.g., “R2”, “Workers”). Cloudflare extension; replaces FOCUS ServiceName.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20x_ProductFamilyName">Link to this property</a>

x\_ZoneId?: string| null

The identifier for the Cloudflare zone (zone tag). Omitted when zone is not part of the requested grouping, and always omitted for usage measured at contract level, even when grouping by zone. Cloudflare extension.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20x_ZoneId">Link to this property</a>

x\_ZoneName?: string| null

The display name of the Cloudflare zone. Omitted when zone is not part of the requested grouping, and for usage measured at contract level. Cloudflare extension.

<a href="#(resource)%20organizations.billing.usage%20%3E%20(model)%20usage_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20x_ZoneName">Link to this property</a>

</details>

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