# Cloudflare Integration via LowCodeAPI
**Last Updated**: February 11, 2026
## Overview
Cloudflare API for managing DNS, zones, workers, security, and more
**Categories:**
- {'id': 'developer-tools', 'name': 'Developer Tools'}
## Base Endpoint
https://api.lowcodeapi.com/cloudflare
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** TOKEN
**Official Documentation:** https://developers.cloudflare.com/api/
## URL Format (Important)
LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.
### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`
### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`
### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider
## API Categories
## Common Endpoints
### List accounts
**Method:** GET
**LowCodeAPI Path:** /accounts
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| direction | string | |
| page | number | |
| per_page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/cloudflare/accounts?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/accounts/
### Get account details
**Method:** GET
**LowCodeAPI Path:** /accounts/{account_id}
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}?account_id={account_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| account_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/cloudflare/accounts/{account_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/accounts/
### Update account
**Method:** PUT
**LowCodeAPI Path:** /accounts/{account_id}
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}?account_id={account_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| account_id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| name | string | |
| settings | object | |
**Example Request (New Format):**
```bash
curl -X PUT 'https://api.lowcodeapi.com/cloudflare/accounts/{account_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/accounts/
### Get user details
**Method:** GET
**LowCodeAPI Path:** /user
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/user?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/user?api_token=YOUR_API_TOKEN
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/cloudflare/user?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/user/
### Update user
**Method:** PATCH
**LowCodeAPI Path:** /user
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/user?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/user?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| country | string | |
| email | string | |
| first_name | string | |
| last_name | string | |
| telephone | string | |
| zipcode | string | |
**Example Request (New Format):**
```bash
curl -X PATCH 'https://api.lowcodeapi.com/cloudflare/user?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/user/
### List account members
**Method:** GET
**LowCodeAPI Path:** /accounts/{account_id}/members
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members?account_id={account_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| account_id | string | |
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| page | number | |
| per_page | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/memberships/
### Add account member
**Method:** POST
**LowCodeAPI Path:** /accounts/{account_id}/members
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members?account_id={account_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| account_id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| email | string | |
| roles | array | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/memberships/
### Get account member
**Method:** GET
**LowCodeAPI Path:** /accounts/{account_id}/members/{member_id}
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?account_id={account_id}&member_id={member_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| account_id | string | |
| member_id | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/memberships/
### Update account member
**Method:** PUT
**LowCodeAPI Path:** /accounts/{account_id}/members/{member_id}
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?account_id={account_id}&member_id={member_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| account_id | string | |
| member_id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| roles | array | |
**Example Request (New Format):**
```bash
curl -X PUT 'https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/memberships/
### Remove account member
**Method:** DELETE
**LowCodeAPI Path:** /accounts/{account_id}/members/{member_id}
**New Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?account_id={account_id}&member_id={member_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| account_id | string | |
| member_id | string | |
**Example Request (New Format):**
```bash
curl -X DELETE 'https://api.lowcodeapi.com/cloudflare/accounts/{account_id}/members/{member_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.cloudflare.com/api/resources/memberships/
## Usage Examples
### Example 1: Basic API Request (New Format)
Making a simple GET request to retrieve resources:
```bash
# Get a list of resources - no path parameters needed
curl -X GET "https://api.lowcodeapi.com/cloudflare/endpoint?api_token=YOUR_API_TOKEN"
```
### Example 2: Request with Path Parameters (New Format)
Retrieving a specific resource using its ID:
```bash
# Get specific resource by ID - replace RESOURCE_ID with actual ID from previous response
curl -X GET "https://api.lowcodeapi.com/cloudflare/endpoint/{RESOURCE_ID}?api_token=YOUR_API_TOKEN"
# Note: RESOURCE_ID typically comes from a previous list request or from the provider dashboard
```
### Example 3: POST Request with Body (New Format)
Creating a new resource:
```bash
# Create a new resource
curl -X POST "https://api.lowcodeapi.com/cloudflare/endpoint?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"field": "value", "another_field": "another_value"}'
```
## Error Handling
LowCodeAPI returns standard HTTP status codes. Common errors:
| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |
All error responses include error details:
```json
{
"data": {
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
}
```
## Complete Endpoint Reference
| Endpoint | Method | Category |
|----------|--------|----------|
| List accounts | GET | Accounts |
| Get account details | GET | Accounts |
| Update account | PUT | Accounts |
| Get user details | GET | User |
| Update user | PATCH | User |
| List account members | GET | Memberships |
| Add account member | POST | Memberships |
| Get account member | GET | Memberships |
| Update account member | PUT | Memberships |
| Remove account member | DELETE | Memberships |
| List zones | GET | Zones |
| Create zone | POST | Zones |
| Get zone details | GET | Zones |
| Update zone | PATCH | Zones |
| Delete zone | DELETE | Zones |
| List DNS records | GET | DNS |
| Create DNS record | POST | DNS |
| Get DNS record | GET | DNS |
| Update DNS record | PUT | DNS |
| Delete DNS record | DELETE | DNS |
| List workers scripts | GET | Workers |
| Get worker script | GET | Workers |
| Upload worker script | PUT | Workers |
| Delete worker script | DELETE | Workers |
| List firewall rules | GET | Firewall |
| Create firewall rule | POST | Firewall |
| Get firewall rule | GET | Firewall |
| Update firewall rule | PUT | Firewall |
| Delete firewall rule | DELETE | Firewall |
| Get SSL universal settings | GET | SSL |
| Update SSL universal settings | PATCH | SSL |
| List SSL certificate packs | GET | SSL |
| List rate limits | GET | Rate Limits |
| Create rate limit | POST | Rate Limits |
| Get rate limit | GET | Rate Limits |
| Update rate limit | PUT | Rate Limits |
| Delete rate limit | DELETE | Rate Limits |
| Get zone analytics dashboard | GET | Analytics |
| List page rules | GET | Page Rules |
| Create page rule | POST | Page Rules |
| Get page rule | GET | Page Rules |
| Update page rule | PUT | Page Rules |
| Delete page rule | DELETE | Page Rules |
| List rulesets | GET | Rulesets |
| Get ruleset | GET | Rulesets |
| Update ruleset | PUT | Rulesets |
| List load balancers | GET | Load Balancers |
| Create load balancer | POST | Load Balancers |
| Get load balancer | GET | Load Balancers |
| Update load balancer | PUT | Load Balancers |
| Delete load balancer | DELETE | Load Balancers |
| Purge cache | POST | Cache |
| Get cache level setting | GET | Cache |
| Update cache level setting | PATCH | Cache |
| List KV namespaces | GET | KV |
| Create KV namespace | POST | KV |
| Delete KV namespace | DELETE | KV |
| List stream videos | GET | Stream |
| Get stream video | GET | Stream |
| Delete stream video | DELETE | Stream |
| List images | GET | Images |
| Get image | GET | Images |
| Delete image | DELETE | Images |
| Get bot management | GET | Bot Management |
| Update bot management | PATCH | Bot Management |
| List rules lists | GET | Rules Lists |
| Create rules list | POST | Rules Lists |
| Get rules list | GET | Rules Lists |
| Delete rules list | DELETE | Rules Lists |
| List rules list items | GET | Rules Lists |
| List logpush jobs | GET | Logpush |
| Create logpush job | POST | Logpush |
| Delete logpush job | DELETE | Logpush |
| List custom hostnames | GET | Custom Hostnames |
| Create custom hostname | POST | Custom Hostnames |
| Get custom hostname | GET | Custom Hostnames |
| Delete custom hostname | DELETE | Custom Hostnames |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/cloudflare/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/cloudflare/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```