Prioritized traffic
Prioritized traffic allows you to define which applications Magic WAN Connector should process first. Applications not in the list will be queued behind prioritized traffic.
Similarly to breakout traffic, prioritized traffic also works via DNS requests inspection.
You need to configure Prioritized traffic for each of your existing sites, as it is a per-site configuration.
- Log in to the Cloudflare dashboard ↗, and select your account.
- Select Magic WAN > Connector on-ramps (beta).
- Select the Connector you want to configure > Edit.
- Select Traffic Steering.
- In Prioritized traffic, select Add.
- Select one or more applications that should bypass Cloudflare filtering from the list. You can also use the search box.
- Select Add applications.
The traffic for the application you chose is now processed first by Connector.
-
Send a
GET
request to list the applications associated with an account.
At least one of the following token permissions is required:Required API token permissions
- Magic WAN Write
- Magic WAN Read
- Magic Transit Prefix Read
- Magic Transit Prefix Write
List Apps curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps \--request GET \--header "X-Auth-Email: $CLOUDFLARE_EMAIL" \--header "X-Auth-Key: $CLOUDFLARE_API_KEY"{"result": [{"managed_app_id": "<APP_ID>","name": "<APP_NAME>","type": "File Sharing","hostnames": ["<app_name.com>","<app-name.info>"]}]}Take note of the
"managed_app_id"
value for any application you want to add. -
Send a
POST
request to add new apps to the breakout traffic policy.
At least one of the following token permissions is required:Required API token permissions
- Magic WAN Write
- Magic Transit Prefix Write
Create a new App curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps \--request POST \--header "X-Auth-Email: $CLOUDFLARE_EMAIL" \--header "X-Auth-Key: $CLOUDFLARE_API_KEY" \--json '{"name": "<MANAGED_APP_ID>","type": "<BREAKOUT_OR_PRIORITY>"}'{"result": {"account_app_id": "<APP_ID>","name": "<APP_NAME>","type": "<BREAKOUT_OR_PRIORITY>"},"success": true,"errors": [],"messages": []}
- Log in to the Cloudflare dashboard ↗, and select your account.
- Select Magic WAN > Connector on-ramps (beta).
- Select the Connector you want to configure > Edit.
- Select Traffic Steering.
- In Prioritized traffic, find the application you want to delete, and select the three dots next to it.
- Select Remove.
- (Optional) If you have several pages of applications, you can use the search box to quickly find the application you are looking for.
-
Send a
GET
request to list the applications associated with a site.
At least one of the following token permissions is required:Required API token permissions
- Magic WAN Write
- Magic WAN Read
- Magic Transit Prefix Read
- Magic Transit Prefix Write
List Apps curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps \--request GET \--header "X-Auth-Email: $CLOUDFLARE_EMAIL" \--header "X-Auth-Key: $CLOUDFLARE_API_KEY"{"result": [{"managed_app_id": "<APP_ID>","name": "<APP_NAME>","type": "File Sharing","hostnames": ["<app_name.com>","<app-name.info>"]}]}Take note of the
"account_app_id"
value for the application that want to delete. -
Send a
DELETE
request to delete an application from the breakout traffic policy.
At least one of the following token permissions is required:Required API token permissions
- Magic WAN Write
- Magic Transit Prefix Write
Delete Account App curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps/$ACCOUNT_APP_ID \--request DELETE \--header "X-Auth-Email: $CLOUDFLARE_EMAIL" \--header "X-Auth-Key: $CLOUDFLARE_API_KEY"{"result": {"account_app_id": "<APP_ID>","name": "<APP_NAME>","type": "<BREAKOUT_OR_PRIORITY>"},"success": true,"errors": [],"messages": []}
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark