Manage accounts
Each customer or team that uses Cloudflare should have their own account. This ensures proper security and access of resources. Each account acts as a container of zones and other resources. Depending on your needs, you may even provision multiple accounts for a single customer or team.
When you create an account with the Tenant API, your Cloudflare user owns that account from creation, ongoing management, and finally deletion.
Each customer or team that uses Cloudflare should have their own account. This ensures proper security and access of resources. Each account acts as a container of zones and other resources. Depending on your needs, you may even provision multiple accounts for a single customer or team.
When you create an account with the Tenant API, your Cloudflare user owns that account from creation, ongoing management, and finally deletion.
To create an account under your tenant using the dashboard:
- Log into the Cloudflare dashboard ↗.
- Go to Tenants > Managed Accounts.
- Select Create Account.
- Enter the Account Name, Account Description, and Tenant Unit.
- Choose the appropriate account subscription.
- Select Add Account.
To create an account using the API, make a POST
request to the /accounts
endpoint and include the following values:
-
name
string- The name of the account that is displayed in the Cloudflare dashboard.
-
type
enum- Valid values are
standard
(default) andenterprise
. For self-serve customers, usestandard
. For enterprise customers, useenterprise
.
- Valid values are
-
unit
object-
Information related to the tenant unit.
-
id
string- (optional) ID of the unit to create this account on. Needs to be specified if user administers multiple tenants. Unit ID is the
unit_tag
from your tenant details.
- (optional) ID of the unit to create this account on. Needs to be specified if user administers multiple tenants. Unit ID is the
-
All KYC parameters are text fields, have a 120 character limit, and are optional unless enforced by the Tenant.
-
business_name
string- (optional) The name of the business associated with this account.
-
business_address
string- (optional) The address of the business associated with this account.
-
business_email
string- (optional) The email of the business associated with this account.
-
business_phone
string- (optional) The phone number of the business associated with this account.
-
external_metadata
string- (optional) External metadata for this account.
A successful request will return an HTTP status of 200
and the following response body:
A request with a unit ID:
A request with a unit ID and KYC:
When you create an account with the Tenant API, your Cloudflare user owns that account from creation, ongoing management, and finally deletion.
To view any accounts owned by your tenant using the dashboard:
- Log into the Cloudflare dashboard ↗.
- Go to Tenants > Managed Accounts.
To fetch any accounts owned by your tenant using the API, send a GET
request to the /accounts
endpoint.
You will get back a list of all the accounts you have created plus any accounts your user already had access to.
To update an account, send a PUT
request to the /accounts/{account_id}
endpoint.
To delete an account you have created, send a DELETE
request to the /accounts/{account_id}
endpoint.
Account deletion is permanent and will delete any zones or other resources under the account.
A successful request will return the id to confirm the operation: