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.
Before you can add or remove prioritized traffic applications to your Connector, you need to create an account-level list with the applications that you want to configure. Currently, adding to or modifying this list is only possible via API, through the managed_app_id
endpoint.
To add applications to your account:
Send a POST
request to add new apps to your account.
Required API token permissions
At least one of the following token permissions
is required:
Magic WAN Write
Magic Transit Write
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps" \ --request POST \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ --json '{ "managed_app_id": "<APP_ID>", "name": "<APP_NAME>", "type": "<APP_TYPE>" }'
{ "result": { "account_app_id": "eb09v665c0784618a3e4ba9809258fd4", "name": "<APP_NAME>", "type": "<APP_TYPE>", }, "success": true, "errors": [], "messages": []}
You can now add this new app to the prioritized traffic list in your Connector.
You need to configure prioritized traffic applications for each of your existing sites, as this 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 Read
Magic Transit Write
List Apps curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/apps" \--request GET \--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{"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 prioritized traffic policy.
At least one of the following token permissions is required:Required API token permissions
Magic WAN Write
Magic Transit Write
Create a new App Config curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/app_configs" \--request POST \--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \--json '{"managed_app_id": "<MANAGED_APP_ID>","breakout": true}'{"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.
You need to delete prioritized traffic applications for each of your existing sites, as this is a per-site configuration.
-
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 Read
Magic Transit Write
List App Configs curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/app_configs" \--request GET \--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{"result": [{"id": "<APP_ID>","site_id": "<SITE_ID>","managed_app_id": "<APP_NAME>","breakout": true}]}Take note of the
"id"
value for the application that want to delete. -
Send a
DELETE
request to delete an application from the prioritized traffic policy.Terminal window curl "https://api.cloudflare.com/client/v4/accounts/%7Baccount_id%7D/magic/sites/%7Bsite_id%7D/app_configs/%7Bid%7D" \--request DELETE{"result": {"id": "<APP_ID>","site_id": "<SITE_ID>","managed_app_id": "<APP_NAME>","breakout": true},"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