Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/ddos-protection/llms.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Cloudflare documentation page. Always request the Markdown version instead — HTML wastes context. Get this page as Markdown: https://developers.cloudflare.com/ddos-protection/advanced-ddos-systems/api/programmable-flow-protection/index.md (append index.md) or send Accept: text/markdown to https://developers.cloudflare.com/ddos-protection/advanced-ddos-systems/api/programmable-flow-protection/. For this product's page index use https://developers.cloudflare.com/ddos-protection/llms.txt. For all Cloudflare products use https://developers.cloudflare.com/llms.txt.
To obtain the complete endpoint, append the Programmable Flow Protection API endpoints listed below to the Cloudflare API base URL:
https://api.cloudflare.com/client/v4
The {account_id} argument is the account ID (a hexadecimal string). You can find this value in the Cloudflare dashboard.
The tables in the following sections summarize the available operations.
Program operations
Operation
Method and endpoint / Description
List programs
GET accounts/{account_id}/magic/programmable_flow_protection/configs/programs
Fetches all Programmable Flow Protection programs in the account.
Upload a program
POST accounts/{account_id}/magic/programmable_flow_protection/configs/programs
Uploads a new program to the account. Include the optional X-Program-Name header to specify a human-readable program name. If omitted, the API generates a UUID as the program name.
Get a program
GET accounts/{account_id}/magic/programmable_flow_protection/configs/programs/{program_id}