Skip to main content
The Accounts resource provides methods to manage Cloudflare accounts, their members, roles, subscriptions, and API tokens.

Main methods

create

Create a new account (available for tenant admins).
string
required
Account name
'standard' | 'enterprise'
Account type (defaults to ‘standard’)
string
Account identifier
string
Account name
'standard' | 'enterprise'
Account type
string
Timestamp for the creation of the account

update

Update an existing account.
string
required
Account identifier tag
string
required
Account identifier
string
required
Account name
'standard' | 'enterprise'
required
Account type
object
Account settings
string
Email to notify for abuse reports
boolean
Whether Two-Factor Authentication is required for account members

list

List all accounts you have ownership or verified access to.
'asc' | 'desc'
Direction to order results
string
Filter by account name
number
Page number of paginated results
number
Number of items per page (max 50)

delete

Delete a specific account (available for tenant admins). This is a permanent operation that will delete any zones or other resources under the account.
string
required
The account ID to delete

get

Get information about a specific account that you are a member of.
string
required
Account identifier tag

Account type

Sub-resources

The Accounts resource provides access to several sub-resources:
  • members - Manage account members and their roles
  • roles - List available roles for an account
  • subscriptions - Manage account subscriptions
  • tokens - Manage API tokens for an account
  • logs - Access account audit logs

Example usage