From b432f3fe17b474c31b65c92eaf51f7b0c6d0cfd1 Mon Sep 17 00:00:00 2001 From: Peluco <134599614+dobalmo@users.noreply.github.com> Date: Sat, 17 Oct 2026 17:27:45 +0200 Subject: [PATCH] Add cURL example for Cloudflare API user tokens Added example cURL command for creating user tokens with Cloudflare API, including necessary headers and data structure. --- .../fundamentals/api/reference/limits.mdx | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/content/docs/fundamentals/api/reference/limits.mdx b/src/content/docs/fundamentals/api/reference/limits.mdx index d0ca68f2ed8..a054996350d 100644 --- a/src/content/docs/fundamentals/api/reference/limits.mdx +++ b/src/content/docs/fundamentals/api/reference/limits.mdx @@ -1,3 +1,37 @@ +export CF_EMAIL="tu@email.com" +export CF_GLOBAL_KEY="tu_global_key" + +curl -X POST "https://api.cloudflare.com/client/v4/user/tokens" \ + -H "X-Auth-Email: $CF_EMAIL" \ + -H "X-Auth-Key: $CF_GLOBAL_KEY" \ + -H "Content-Type: application/json" \ + --data '{ + "name": "nevecloud-deploy-v5", + "policies": [ + { + "effect": "allow", + "resources": { + "com.cloudflare.api.account.*": "*" + }, + "permissionGroups": [ + { + "id": "c8fed203ed3043cba015a93ac6d2112a" + } + ] + }, + { + "effect": "allow", + "resources": { + "com.cloudflare.api.account.zone.*": "*" + }, + "permissionGroups": [ + { + "id": "e17b1d1d1a8747ca8a65a1d15db9a0d6" + } + ] + } + ] + }' --- pcx_content_type: reference title: Rate limits