Zero TrustZero Trust Accounts

Create Zero Trust account

POST
Creates a Zero Trust account with an existing Cloudflare account.

Path parameters

identifierstringRequired

Request

This endpoint expects an object.
account_id
stringRequired
Cloudflare account ID.

Response

This endpoint returns an object
result
objectOptional
POST
1curl -X POST https://api.cloudflare.com/client/v4/accounts/699d98642c564d2e855e9661899b7252/gateway \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "account_id": "699d98642c564d2e855e9661899b7252"
6}'
200Successful
1{
2 "result": {
3 "gateway_tag": "f174e90afafe4643bbbc4a0ed4fc8415",
4 "id": "699d98642c564d2e855e9661899b7252",
5 "provider_name": "Cloudflare"
6 }
7}