Cloudflare Docs
Cloudflare Zero Trust
Edit this page
Give us feedback
Set theme to dark (⇧+D)

Access API examples

You can use the Cloudflare Access API to create policies, including individual rule blocks inside of group or policy bodies. For example, this policy allows all Cloudflare email account users to reach the application with the exception of one account:

{
"name": "allow cloudflare employees",
"decision": "allow",
"include": [
{
"email_domain": {
"domain": "cloudflare.com"
}
}
],
"exclude": [
{
"email": {
"email": "notthisperson@cloudflare.com"
}
}
],
"require": []
}

​​ Example rule configurations