---
title: User
---

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

# User

##### [User Details](https://developers.cloudflare.com/api/typescript/resources/user/methods/get)

client.user.get(RequestOptionsoptions?): [UserGetResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)>) {id, email, betas, 12 more }

GET/user

##### [Edit User](https://developers.cloudflare.com/api/typescript/resources/user/methods/edit)

client.user.edit(UserEditParams {country, first\_name, last\_name, 2 more } body, RequestOptionsoptions?): [UserEditResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)>) {id, email, betas, 12 more }

PATCH/user

##### ModelsExpand Collapse

<details>

<summary>

UserGetResponse {id, email, betas, 12 more }

</summary>

id: string

Identifier of the user.

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

email: string

Current email address of the user.

formatemail

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

betas?: Array&lt;string&gt;

Lists the betas that the user is participating in.

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20betas">Link to this property</a>

country?: string| null

The country in which the user lives.

maxLength30

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20country">Link to this property</a>

first\_name?: string| null

User’s first name

maxLength60

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20first_name">Link to this property</a>

has\_business\_zones?: boolean

Indicates whether user has any business zones

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20has_business_zones">Link to this property</a>

has\_enterprise\_zones?: boolean

Indicates whether user has any enterprise zones

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20has_enterprise_zones">Link to this property</a>

has\_pro\_zones?: boolean

Indicates whether user has any pro zones

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20has_pro_zones">Link to this property</a>

last\_name?: string| null

User’s last name

maxLength60

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20last_name">Link to this property</a>

<details>

<summary>

organizations?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.organizations%20%3E%20(model)%20organization%20%3E%20(schema)">Organization</a> {id, name, permissions, 2 more } &gt;

</summary>

id?: string

Identifier

maxLength32

minLength32

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

name?: string

Organization name.

maxLength100

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

permissions?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20permission%20%3E%20(schema)">Permission</a>&gt;

Access permissions for this User.

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

roles?: Array&lt;string&gt;

List of roles that a user has within an organization.

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

status?: <a href="https://developers.cloudflare.com/api/typescript/resources/accounts#(resource)%20accounts.members%20%3E%20(model)%20status%20%3E%20(schema)">Status</a>

Whether the user is a member of the organization or has an invitation pending.

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

</details>

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

suspended?: boolean

Indicates whether user has been suspended

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20suspended">Link to this property</a>

telephone?: string| null

User’s telephone number

maxLength20

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20telephone">Link to this property</a>

two\_factor\_authentication\_enabled?: boolean

Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.

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

two\_factor\_authentication\_locked?: boolean

Indicates whether two-factor authentication is required by one of the accounts that the user is a member of.

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20two_factor_authentication_locked">Link to this property</a>

zipcode?: string| null

The zipcode or postal code where the user lives.

maxLength20

<a href="#(resource)%20user%20%3E%20(model)%20user_get_response%20%3E%20(schema)%20%3E%20(property)%20zipcode">Link to this property</a>

</details>

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

<details>

<summary>

UserEditResponse {id, email, betas, 12 more }

</summary>

id: string

Identifier of the user.

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

email: string

Current email address of the user.

formatemail

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

betas?: Array&lt;string&gt;

Lists the betas that the user is participating in.

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20betas">Link to this property</a>

country?: string| null

The country in which the user lives.

maxLength30

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20country">Link to this property</a>

first\_name?: string| null

User’s first name

maxLength60

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20first_name">Link to this property</a>

has\_business\_zones?: boolean

Indicates whether user has any business zones

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20has_business_zones">Link to this property</a>

has\_enterprise\_zones?: boolean

Indicates whether user has any enterprise zones

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20has_enterprise_zones">Link to this property</a>

has\_pro\_zones?: boolean

Indicates whether user has any pro zones

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20has_pro_zones">Link to this property</a>

last\_name?: string| null

User’s last name

maxLength60

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20last_name">Link to this property</a>

<details>

<summary>

organizations?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.organizations%20%3E%20(model)%20organization%20%3E%20(schema)">Organization</a> {id, name, permissions, 2 more } &gt;

</summary>

id?: string

Identifier

maxLength32

minLength32

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

name?: string

Organization name.

maxLength100

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

permissions?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20permission%20%3E%20(schema)">Permission</a>&gt;

Access permissions for this User.

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

roles?: Array&lt;string&gt;

List of roles that a user has within an organization.

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

status?: <a href="https://developers.cloudflare.com/api/typescript/resources/accounts#(resource)%20accounts.members%20%3E%20(model)%20status%20%3E%20(schema)">Status</a>

Whether the user is a member of the organization or has an invitation pending.

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

</details>

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

suspended?: boolean

Indicates whether user has been suspended

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20suspended">Link to this property</a>

telephone?: string| null

User’s telephone number

maxLength20

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20telephone">Link to this property</a>

two\_factor\_authentication\_enabled?: boolean

Indicates whether two-factor authentication is enabled for the user account. Does not apply to API authentication.

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

two\_factor\_authentication\_locked?: boolean

Indicates whether two-factor authentication is required by one of the accounts that the user is a member of.

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20two_factor_authentication_locked">Link to this property</a>

zipcode?: string| null

The zipcode or postal code where the user lives.

maxLength20

<a href="#(resource)%20user%20%3E%20(model)%20user_edit_response%20%3E%20(schema)%20%3E%20(property)%20zipcode">Link to this property</a>

</details>

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

#### UserAudit Logs

##### [Get user audit logs](https://developers.cloudflare.com/api/typescript/resources/user/subresources/audit_logs/methods/list)

client.user.auditLogs.list(AuditLogListParams {id, action, actor, 8 more } query?, RequestOptionsoptions?): V4PagePaginationArray< [AuditLog](<https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20audit_log%20%3E%20(schema)>) {id, action, actor, 7 more } >

GET/user/audit\_logs

#### UserBilling

#### UserBillingHistory

##### [Billing History Details](https://developers.cloudflare.com/api/typescript/resources/user/subresources/billing/subresources/history/methods/list)

Deprecated

client.user.billing.history.list(HistoryListParams {action, occurred\_at, order, 3 more } query?, RequestOptionsoptions?): V4PagePaginationArray< [BillingHistory](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)>) {id, action, amount, 5 more } >

GET/user/billing/history

##### ModelsExpand Collapse

<details>

<summary>

BillingHistory {id, action, amount, 5 more }

</summary>

id: string

Billing item identifier tag.

maxLength32

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

action: string

The billing item action.

maxLength30

<a href="#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

amount: number

The amount associated with this billing item.

<a href="#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)%20%3E%20(property)%20amount">Link to this property</a>

currency: string

The monetary unit in which pricing information is displayed.

<a href="#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)%20%3E%20(property)%20currency">Link to this property</a>

description: string

The billing item description.

maxLength255

<a href="#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

occurred\_at: string

When the billing item was created.

formatdate-time

<a href="#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)%20%3E%20(property)%20occurred_at">Link to this property</a>

type: string

The billing item type.

maxLength30

<a href="#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

zone: Zone {name }

</summary>

name?: string

<a href="#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)%20%3E%20(property)%20zone%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)%20%3E%20(property)%20zone">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.billing.history%20%3E%20(model)%20billing_history%20%3E%20(schema)>)

#### UserBillingProfile

##### [Billing Profile Details](https://developers.cloudflare.com/api/typescript/resources/user/subresources/billing/subresources/profile/methods/get)

Deprecated

client.user.billing.profile.get(RequestOptionsoptions?): [ProfileGetResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)>) {id, account\_type, address, 35 more }

GET/user/billing/profile

##### ModelsExpand Collapse

<details>

<summary>

ProfileGetResponse {id, account\_type, address, 35 more }

</summary>

id?: string

Billing item identifier tag.

maxLength32

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

account\_type?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20account_type">Link to this property</a>

address?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20address">Link to this property</a>

address2?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20address2">Link to this property</a>

balance?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20balance">Link to this property</a>

card\_expiry\_month?: number

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20card_expiry_month">Link to this property</a>

card\_expiry\_year?: number

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20card_expiry_year">Link to this property</a>

card\_number?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20card_number">Link to this property</a>

city?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20city">Link to this property</a>

company?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20company">Link to this property</a>

country?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20country">Link to this property</a>

created\_on?: string

formatdate-time

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

device\_data?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20device_data">Link to this property</a>

edited\_on?: string

formatdate-time

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20edited_on">Link to this property</a>

enterprise\_billing\_email?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20enterprise_billing_email">Link to this property</a>

enterprise\_primary\_email?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20enterprise_primary_email">Link to this property</a>

first\_name?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20first_name">Link to this property</a>

is\_partner?: boolean

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20is_partner">Link to this property</a>

last\_name?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20last_name">Link to this property</a>

next\_bill\_date?: string

formatdate-time

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20next_bill_date">Link to this property</a>

payment\_address?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_address">Link to this property</a>

payment\_address2?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_address2">Link to this property</a>

payment\_city?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_city">Link to this property</a>

payment\_country?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_country">Link to this property</a>

payment\_email?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_email">Link to this property</a>

payment\_first\_name?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_first_name">Link to this property</a>

payment\_gateway?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_gateway">Link to this property</a>

payment\_last\_name?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_last_name">Link to this property</a>

payment\_nonce?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_nonce">Link to this property</a>

payment\_state?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_state">Link to this property</a>

payment\_zipcode?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20payment_zipcode">Link to this property</a>

primary\_email?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20primary_email">Link to this property</a>

state?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20state">Link to this property</a>

tax\_id\_type?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20tax_id_type">Link to this property</a>

telephone?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20telephone">Link to this property</a>

validation\_code?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20validation_code">Link to this property</a>

vat?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20vat">Link to this property</a>

zipcode?: string

<a href="#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)%20%3E%20(property)%20zipcode">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.billing.profile%20%3E%20(model)%20profile_get_response%20%3E%20(schema)>)

#### UserInvites

##### [List Invitations](https://developers.cloudflare.com/api/typescript/resources/user/subresources/invites/methods/list)

client.user.invites.list(RequestOptionsoptions?): SinglePage< [Invite](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>) {invited\_member\_id, organization\_id, id, 8 more } >

GET/user/invites

##### [Invitation Details](https://developers.cloudflare.com/api/typescript/resources/user/subresources/invites/methods/get)

client.user.invites.get(stringinviteID, RequestOptionsoptions?): [Invite](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>) {invited\_member\_id, organization\_id, id, 8 more }

GET/user/invites/{invite\_id}

##### [Respond to Invitation](https://developers.cloudflare.com/api/typescript/resources/user/subresources/invites/methods/edit)

client.user.invites.edit(stringinviteID, InviteEditParams {status } body, RequestOptionsoptions?): [Invite](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>) {invited\_member\_id, organization\_id, id, 8 more }

PATCH/user/invites/{invite\_id}

##### ModelsExpand Collapse

<details>

<summary>

Invite {invited\_member\_id, organization\_id, id, 8 more }

</summary>

invited\_member\_id: string| null

ID of the user to add to the organization.

maxLength32

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20invited_member_id">Link to this property</a>

organization\_id: string

ID of the organization the user will be added to.

maxLength32

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20organization_id">Link to this property</a>

id?: string

Invite identifier tag.

maxLength32

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

expires\_on?: string

When the invite is no longer active.

formatdate-time

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20expires_on">Link to this property</a>

invited\_by?: string

The email address of the user who created the invite.

maxLength90

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20invited_by">Link to this property</a>

invited\_member\_email?: string

Email address of the user to add to the organization.

maxLength90

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20invited_member_email">Link to this property</a>

invited\_on?: string

When the invite was sent.

formatdate-time

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20invited_on">Link to this property</a>

organization\_is\_enforcing\_twofactor?: boolean

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20organization_is_enforcing_twofactor">Link to this property</a>

organization\_name?: string

Organization name.

maxLength100

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20organization_name">Link to this property</a>

roles?: Array&lt;string&gt;

List of role names the membership has for this account.

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20roles">Link to this property</a>

<details>

<summary>

status?: "pending"| "accepted"| "rejected"| "expired"

Current status of the invitation.

</summary>

One of the following:

"pending"

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

"accepted"

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

"rejected"

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

"expired"

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

</details>

<a href="#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.invites%20%3E%20(model)%20invite%20%3E%20(schema)>)

#### UserOrganizations

##### [List Organizations](https://developers.cloudflare.com/api/typescript/resources/user/subresources/organizations/methods/list)

Deprecated

client.user.organizations.list(OrganizationListParams {direction, match, name, 4 more } query?, RequestOptionsoptions?): V4PagePaginationArray< [Organization](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.organizations%20%3E%20(model)%20organization%20%3E%20(schema)>) {id, name, permissions, 2 more } >

GET/user/organizations

##### [Organization Details](https://developers.cloudflare.com/api/typescript/resources/user/subresources/organizations/methods/get)

Deprecated

client.user.organizations.get(stringorganizationID, RequestOptionsoptions?): [OrganizationGetResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.organizations%20%3E%20(model)%20organization_get_response%20%3E%20(schema)>)

GET/user/organizations/{organization\_id}

##### [Leave Organization](https://developers.cloudflare.com/api/typescript/resources/user/subresources/organizations/methods/delete)

Deprecated

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

DELETE/user/organizations/{organization\_id}

##### ModelsExpand Collapse

<details>

<summary>

Organization {id, name, permissions, 2 more }

</summary>

id?: string

Identifier

maxLength32

minLength32

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

name?: string

Organization name.

maxLength100

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

permissions?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20permission%20%3E%20(schema)">Permission</a>&gt;

Access permissions for this User.

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

roles?: Array&lt;string&gt;

List of roles that a user has within an organization.

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

status?: <a href="https://developers.cloudflare.com/api/typescript/resources/accounts#(resource)%20accounts.members%20%3E%20(model)%20status%20%3E%20(schema)">Status</a>

Whether the user is a member of the organization or has an invitation pending.

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

</details>

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

OrganizationGetResponse = unknown

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

<details>

<summary>

OrganizationDeleteResponse {id }

</summary>

id?: string

Identifier

maxLength32

minLength32

<a href="#(resource)%20user.organizations%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)%20user.organizations%20%3E%20(model)%20organization_delete_response%20%3E%20(schema)>)

#### UserSpectrum Analytics

#### UserSpectrum AnalyticsZones

#### UserSpectrum AnalyticsZonesReports

##### [Get zones bandwidth report](https://developers.cloudflare.com/api/typescript/resources/user/subresources/spectrum_analytics/subresources/zones/subresources/reports/methods/get)

client.user.spectrumAnalytics.zones.reports.get(ReportGetParams {cdn\_traffic, since, until } query?, RequestOptionsoptions?): [ReportGetResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.spectrum_analytics.zones.reports%20%3E%20(model)%20report_get_response%20%3E%20(schema)>) {totals, zone\_id }

GET/user/spectrum\_analytics/zones/report

##### ModelsExpand Collapse

<details>

<summary>

ReportGetResponse = Array&lt;ReportGetResponseItem&gt;

</summary>

<details>

<summary>

totals: Totals {bandwidth }

</summary>

<details>

<summary>

bandwidth: Bandwidth {all, egress, ingress }

</summary>

all: number

Sum of ingress and egress bytes transferred.

<a href="#(resource)%20user.spectrum_analytics.zones.reports%20%3E%20(model)%20report_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20totals%20%3E%20(property)%20bandwidth%20%3E%20(property)%20all">Link to this property</a>

egress: number

Sum of egress bytes transferred.

<a href="#(resource)%20user.spectrum_analytics.zones.reports%20%3E%20(model)%20report_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20totals%20%3E%20(property)%20bandwidth%20%3E%20(property)%20egress">Link to this property</a>

ingress: number

Sum of ingress bytes transferred.

<a href="#(resource)%20user.spectrum_analytics.zones.reports%20%3E%20(model)%20report_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20totals%20%3E%20(property)%20bandwidth%20%3E%20(property)%20ingress">Link to this property</a>

</details>

<a href="#(resource)%20user.spectrum_analytics.zones.reports%20%3E%20(model)%20report_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20totals%20%3E%20(property)%20bandwidth">Link to this property</a>

</details>

<a href="#(resource)%20user.spectrum_analytics.zones.reports%20%3E%20(model)%20report_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20totals">Link to this property</a>

zone\_id: string

Identifier.

maxLength32

<a href="#(resource)%20user.spectrum_analytics.zones.reports%20%3E%20(model)%20report_get_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20zone_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.spectrum_analytics.zones.reports%20%3E%20(model)%20report_get_response%20%3E%20(schema)>)

#### UserSubscriptions

##### [Get User Subscriptions](https://developers.cloudflare.com/api/typescript/resources/user/subresources/subscriptions/methods/get)

client.user.subscriptions.get(RequestOptionsoptions?): SinglePage< [Subscription](<https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20subscription%20%3E%20(schema)>) {id, currency, current\_period\_end, 5 more } >

GET/user/subscriptions

##### [Update User Subscription](https://developers.cloudflare.com/api/typescript/resources/user/subresources/subscriptions/methods/update)

client.user.subscriptions.update(stringidentifier, SubscriptionUpdateParams {frequency, rate\_plan } body, RequestOptionsoptions?): [SubscriptionUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)>)

PUT/user/subscriptions/{identifier}

##### [Delete User Subscription](https://developers.cloudflare.com/api/typescript/resources/user/subresources/subscriptions/methods/delete)

client.user.subscriptions.delete(stringidentifier, RequestOptionsoptions?): [SubscriptionDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)>) {subscription\_id }

DELETE/user/subscriptions/{identifier}

##### ModelsExpand Collapse

<details>

<summary>

SubscriptionUpdateResponse = unknown| string| null

</summary>

One of the following:

unknown

<a href="#(resource)%20user.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

string| null

<a href="#(resource)%20user.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.subscriptions%20%3E%20(model)%20subscription_update_response%20%3E%20(schema)>)

<details>

<summary>

SubscriptionDeleteResponse {subscription\_id }

</summary>

subscription\_id?: string

Subscription identifier tag.

maxLength32

<a href="#(resource)%20user.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)%20%3E%20(property)%20subscription_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.subscriptions%20%3E%20(model)%20subscription_delete_response%20%3E%20(schema)>)

#### UserTenants

##### [List user tenants](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tenants/methods/list)

client.user.tenants.list(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/user/tenants

#### UserTokens

##### [List Tokens](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tokens/methods/list)

client.user.tokens.list(TokenListParams {direction, include\_expired, page, per\_page } query?, RequestOptionsoptions?): V4PagePaginationArray< [Token](<https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>) {id, condition, creator\_email\_at\_creation, 10 more } >

GET/user/tokens

##### [Token Details](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tokens/methods/get)

client.user.tokens.get(stringtokenID, RequestOptionsoptions?): [Token](<https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>) {id, condition, creator\_email\_at\_creation, 10 more }

GET/user/tokens/{token\_id}

##### [Create Token](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tokens/methods/create)

client.user.tokens.create(TokenCreateParams {name, policies, condition, 2 more } body, RequestOptionsoptions?): [TokenCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)>) {id, condition, creator\_email\_at\_creation, 11 more }

POST/user/tokens

##### [Update Token](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tokens/methods/update)

client.user.tokens.update(stringtokenID, TokenUpdateParams {name, policies, condition, 3 more } body, RequestOptionsoptions?): [Token](<https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token%20%3E%20(schema)>) {id, condition, creator\_email\_at\_creation, 10 more }

PUT/user/tokens/{token\_id}

##### [Delete Token](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tokens/methods/delete)

client.user.tokens.delete(stringtokenID, RequestOptionsoptions?): [TokenDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.tokens%20%3E%20(model)%20token_delete_response%20%3E%20(schema)>) {id } | null

DELETE/user/tokens/{token\_id}

##### [Verify Token](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tokens/methods/verify)

client.user.tokens.verify(RequestOptionsoptions?): [TokenVerifyResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.tokens%20%3E%20(model)%20token_verify_response%20%3E%20(schema)>) {id, status, expires\_on, not\_before }

GET/user/tokens/verify

##### ModelsExpand Collapse

<details>

<summary>

TokenCreateResponse {id, condition, creator\_email\_at\_creation, 11 more }

</summary>

id?: string

Token identifier tag.

maxLength32

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

<details>

<summary>

condition?: Condition {request\_ip }

</summary>

<details>

<summary>

request\_ip?: RequestIP {in, not\_in }

Client IP restrictions.

</summary>

in?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_condition_cidr_list%20%3E%20(schema)">TokenConditionCIDRList</a>&gt;

List of IPv4/IPv6 CIDR addresses.

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20condition%20%3E%20(property)%20request_ip%20%3E%20(property)%20in">Link to this property</a>

not\_in?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_condition_cidr_list%20%3E%20(schema)">TokenConditionCIDRList</a>&gt;

List of IPv4/IPv6 CIDR addresses.

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20condition%20%3E%20(property)%20request_ip%20%3E%20(property)%20not_in">Link to this property</a>

</details>

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20condition%20%3E%20(property)%20request_ip">Link to this property</a>

</details>

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20condition">Link to this property</a>

creator\_email\_at\_creation?: string

The email address of the user who created the token at the time of creation. Only present for Account Owned API Tokens when a creator email was available.

maxLength90

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20creator_email_at_creation">Link to this property</a>

expires\_on?: string

The expiration time on or after which the JWT MUST NOT be accepted for processing.

formatdate-time

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20expires_on">Link to this property</a>

issued\_on?: string

The time on which the token was created.

formatdate-time

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20issued_on">Link to this property</a>

last\_used\_on?: string

Last time the token was used.

formatdate-time

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20last_used_on">Link to this property</a>

modified\_on?: string

Last time the token was modified.

formatdate-time

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

name?: string

Token name.

maxLength120

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

not\_before?: string

The time before which the token MUST NOT be accepted for processing.

formatdate-time

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20not_before">Link to this property</a>

<details>

<summary>

policies?: Array&lt;<a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)">TokenPolicy</a> {id, effect, permission\_groups, resources } &gt;

List of access policies assigned to the token.

</summary>

id: string

Policy identifier.

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

<details>

<summary>

effect: "allow"| "deny"

Allow or deny operations against the resources.

</summary>

One of the following:

"allow"

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20effect%20%3E%20(member)%200">Link to this property</a>

"deny"

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20effect%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20effect">Link to this property</a>

<details>

<summary>

permission\_groups: Array&lt;PermissionGroup&gt;

A set of permission groups that are specified to the policy.

</summary>

id: string

Identifier of the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

meta?: Meta {category, deprecated, description, 5 more }

Attributes associated to the permission group.

</summary>

category?: string

A category used to group permission groups.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20category">Link to this property</a>

deprecated?: string

Indicates whether the permission group is deprecated.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20deprecated">Link to this property</a>

description?: string

Additional information about the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20description">Link to this property</a>

editable?: string

Indicates whether the permission group can be edited.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20editable">Link to this property</a>

eol\_at?: string

The planned end-of-life date and time, when provided.

formatdate-time

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20eol_at">Link to this property</a>

label?: string

A label identifying the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20label">Link to this property</a>

scopes?: string

The scope associated with the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20scopes">Link to this property</a>

visibility?: string

Indicates the permission group’s availability or visibility.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta%20%3E%20(property)%20visibility">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20meta">Link to this property</a>

name?: string

Name of the permission group.

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20permission_groups">Link to this property</a>

<details>

<summary>

resources: Record&lt;string, string&gt;| Record&lt;string, Record&lt;string, string&gt;&gt;

A list of resource names that the policy applies to.

</summary>

One of the following:

Record&lt;string, string&gt;

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(variant)%200">Link to this property</a>

Record&lt;string, Record&lt;string, string&gt;&gt;

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20resources%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20token_policy%20%3E%20(schema)%20%3E%20(property)%20resources">Link to this property</a>

</details>

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20policies">Link to this property</a>

provisioner\_id?: string| null

The identifier of the service that provisioned the token. For an OAuth-provisioned token, this is the OAuth client identifier. Present when <code>provisioner_type</code> is present and null when the identifier is unavailable.

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20provisioner_id">Link to this property</a>

provisioner\_type?: string

The type of service that provisioned the token. Only present for provisioned Account Owned API Tokens.

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20provisioner_type">Link to this property</a>

<details>

<summary>

status?: "active"| "disabled"| "expired"

Status of the token.

</summary>

One of the following:

"active"

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

"disabled"

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

"expired"

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

</details>

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

value?: <a href="https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_value%20%3E%20(schema)">TokenValue</a>

The token value.

maxLength80

minLength40

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.tokens%20%3E%20(model)%20token_create_response%20%3E%20(schema)>)

<details>

<summary>

TokenDeleteResponse {id }

</summary>

id: string

Identifier

maxLength32

minLength32

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

</details>

[Link to this property](<#(resource)%20user.tokens%20%3E%20(model)%20token_delete_response%20%3E%20(schema)>)

<details>

<summary>

TokenVerifyResponse {id, status, expires\_on, not\_before }

</summary>

id: string

Token identifier tag.

maxLength32

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

<details>

<summary>

status: "active"| "disabled"| "expired"

Status of the token.

</summary>

One of the following:

"active"

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

"disabled"

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

"expired"

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

</details>

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_verify_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

expires\_on?: string

The expiration time on or after which the JWT MUST NOT be accepted for processing.

formatdate-time

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_verify_response%20%3E%20(schema)%20%3E%20(property)%20expires_on">Link to this property</a>

not\_before?: string

The time before which the token MUST NOT be accepted for processing.

formatdate-time

<a href="#(resource)%20user.tokens%20%3E%20(model)%20token_verify_response%20%3E%20(schema)%20%3E%20(property)%20not_before">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.tokens%20%3E%20(model)%20token_verify_response%20%3E%20(schema)>)

#### UserTokensPermission Groups

##### [List Token Permission Groups](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tokens/subresources/permission_groups/methods/list)

client.user.tokens.permissionGroups.list(PermissionGroupListParams {name, scope } query?, RequestOptionsoptions?): SinglePage< [PermissionGroupListResponse](<https://developers.cloudflare.com/api/typescript/resources/user#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)>) {id, category, is\_selectable, 2 more } >

GET/user/tokens/permission\_groups

##### ModelsExpand Collapse

<details>

<summary>

PermissionGroupListResponse {id, category, is\_selectable, 2 more }

</summary>

id?: string

Public ID.

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

<details>

<summary>

category?: "developer\_platform"| "ai\_and\_machine\_learning"| "dns\_and\_zones"| 10 more

Product category that this permission group belongs to.

</summary>

One of the following:

"developer\_platform"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%200">Link to this property</a>

"ai\_and\_machine\_learning"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%201">Link to this property</a>

"dns\_and\_zones"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%202">Link to this property</a>

"app\_security"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%203">Link to this property</a>

"rules\_and\_configuration"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%204">Link to this property</a>

"cloudflare\_one\_and\_zero\_trust"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%205">Link to this property</a>

"analytics\_and\_logs"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%206">Link to this property</a>

"network\_services"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%207">Link to this property</a>

"media"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%208">Link to this property</a>

"email\_and\_messaging"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%209">Link to this property</a>

"cache\_and\_performance"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%2010">Link to this property</a>

"account\_and\_billing"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%2011">Link to this property</a>

"other"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category%20%3E%20(member)%2012">Link to this property</a>

</details>

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20category">Link to this property</a>

is\_selectable?: boolean

Whether the caller can select this permission group when creating a token.

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20is_selectable">Link to this property</a>

name?: string

Permission Group Name

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

<details>

<summary>

scopes?: Array&lt;"com.cloudflare.api.account"| "com.cloudflare.api.account.zone"| "com.cloudflare.api.user"| "com.cloudflare.edge.r2.bucket"&gt;

Resources to which the Permission Group is scoped

</summary>

One of the following:

"com.cloudflare.api.account"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

"com.cloudflare.api.account.zone"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

"com.cloudflare.api.user"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

"com.cloudflare.edge.r2.bucket"

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)%20%3E%20(property)%20scopes">Link to this property</a>

</details>

[Link to this property](<#(resource)%20user.tokens.permission_groups%20%3E%20(model)%20permission_group_list_response%20%3E%20(schema)>)

#### UserTokensValue

##### [Roll Token](https://developers.cloudflare.com/api/typescript/resources/user/subresources/tokens/subresources/value/methods/update)

client.user.tokens.value.update(stringtokenID, RequestOptionsoptions?): [TokenValue](<https://developers.cloudflare.com/api/typescript/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20token_value%20%3E%20(schema)>)

PUT/user/tokens/{token\_id}/value