Manage accounts
Last updated Jun 29, 2026 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.
Create account
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:
namestring- The name of the account that is displayed in the Cloudflare dashboard.
typeenum- Valid values are
standard(default) andenterprise. For self-serve customers, usestandard. For enterprise customers, useenterprise. unitobject- Information related to the tenant unit.
idstring- (optional) ID of the unit to create this account on. Needs to be specified if user administers multiple tenants. Unit ID is the
unit_tagfrom 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
Know-Your-Customer (optional)
All KYC parameters are text fields, have a 120 character limit, and are optional unless enforced by the Tenant.
business_namestring- (optional) The name of the business associated with this account.
business_addressstring- (optional) The address of the business associated with this account.
business_emailstring- (optional) The email of the business associated with this account.
business_phonestring- (optional) The phone number of the business associated with this account.
external_metadatastring- (optional) External metadata for this account.
Requestbash
curl "https://api.cloudflare.com/client/v4/accounts" \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data '{
"name": "<ACCOUNT_NAME>",
"type": "standard"
}'
A successful request will return an HTTP status of 200 and the following response body:
Responsejson
{
"result": {
"id": "2bab6ace8c72ed3f09b9eca6db1396bb",
"name": "<ACCOUNT_NAME>",
"type": "standard",
"settings": {
"enforce_twofactor": false
}
},
"success": true,
"errors": [],
"messages": []
}
A request with a unit ID:
Requestbash
curl "https://api.cloudflare.com/client/v4/accounts" \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data '{
"name": "<ACCOUNT_NAME>",
"type": "standard",
"unit": {
"id": "1a2b3c4d5e6f7g8h"
}
}'
A request with a unit ID and KYC:
Requestbash
curl "https://api.cloudflare.com/client/v4/accounts" \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>" \
--header "Content-Type: application/json" \
--data '{
"name": "<ACCOUNT_NAME>",
"type": "standard",
"business_name": "Cloudflare",
"business_email": "email@business.com",
"business_address": "San Francisco",
"business_phone": "1234567890",
"external_metadata": "{'\''testKey'\'': '\''testValue'\''}",
"unit": {
"id": "1a2b3c4d5e6f7g8h"
}
}'
View accounts
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.
Requestbash
curl https://api.cloudflare.com/client/v4/accounts \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>"
Responsejson
{
"result": [
{
"id": "a34bd6cc645a31486aa2ef71f1b9afb6",
"name": "My Personal Account",
"settings": {
"enforce_twofactor": false
}
},
{
"id": "1b16db169c9cb7853009857198fae1b9",
"name": "Created Account",
"settings": {
"enforce_twofactor": false
}
}
],
"result_info": {
"page": 1,
"per_page": 20,
"total_pages": 1,
"count": 2,
"total_count": 2
},
"success": true,
"errors": [],
"messages": []
}
Update account
To update an account, send a PUT request to the /accounts/{account_id} endpoint.
Delete account
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.
Some resources require manual deletion
The following resources are not automatically deleted when you delete an account and must be removed manually beforehand:
- Logpush jobs: Will continue delivering logs after account deletion.
- Zero Trust Gateway configurations: May continue resolving DNS queries after account deletion.
To ensure complete cleanup, delete these resources before deleting the account by calling the following endpoints in sequence:
- Delete Zero Trust Gateway configuration:
bash
curl --request DELETE \
https://api.cloudflare.com/client/v4/accounts/{account_id}/gateway \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>"
- Delete Access organization:
bash
curl --request DELETE \
https://api.cloudflare.com/client/v4/accounts/{account_id}/access/organizations \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>"
- Then delete the account (see below).
Requestbash
curl --request DELETE \
https://api.cloudflare.com/client/v4/accounts/{account_id} \
--header "X-Auth-Email: <EMAIL>" \
--header "X-Auth-Key: <API_KEY>"
A successful request will return the id to confirm the operation:
Responsejson
{
"result": {
"id": "1b16db169c9cb7853009857198fae1b9"
},
"success": true,
"errors": [],
"messages": []
}
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/tenant/how-to/manage-accounts/#page","headline":"Manage accounts","description":"Create, update, and delete customer accounts using the Cloudflare Tenant API or dashboard.","url":"https://developers.cloudflare.com/tenant/how-to/manage-accounts/","inLanguage":"en","image":"https://developers.cloudflare.com/tenant/how-to/manage-accounts/og.png?v=c8b4ae620ef3e702","dateModified":"2026-06-29","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Add and manage zone and account-level subscriptions for tenant-managed Cloudflare accounts. title: Manage subscriptions image: https://developers.cloudflare.com/tenant/how-to/manage-subscriptions/og.png?v=b3894456e29c5738
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/tenant/llms.txt
Use this file to discover all available pages before exploring further.
Docs