Creates a new Cloudflare worker with optional proxy settings.
You must provide ONE of the following authentication methods:
Important Notes:
POST /createWorker HTTP/1.1
Host: cfworkerback.pages.dev
Content-Type: application/json
{
"apiToken": "your-cloudflare-api-token",
"workerName": "example-worker",
"uuid": "12345678-1234-5678-1234-567812345678",
"nodeName": "Example Node",
"proxyIp": "cdn.example.com:443",
"customDomain": "your-custom-domain.com",
"socks5Relay": false,
"socks5Proxy": "",
"workerScriptUrl": "https://cdn.jsdelivr.net/gh/6Kmfi6HP/EDtunnel@refs/heads/main/_worker.js"
}
POST /createWorker HTTP/1.1
Host: cfworkerback.pages.dev
Content-Type: application/json
{
"email": "your-email@example.com",
"globalAPIKey": "your-global-api-key",
"workerName": "example-worker",
"uuid": "12345678-1234-5678-1234-567812345678",
"nodeName": "Example Node",
"proxyIp": "cdn.example.com:443",
"customDomain": "your-custom-domain.com",
"socks5Relay": false,
"socks5Proxy": "",
"workerScriptUrl": "https://cdn.jsdelivr.net/gh/6Kmfi6HP/EDtunnel@refs/heads/main/_worker.js"
}
curl -X POST https://cfworkerback.pages.dev/createWorker \
-H "Content-Type: application/json" \
-d '{
"apiToken": "your-cloudflare-api-token",
"workerName": "example-worker",
"uuid": "12345678-1234-5678-1234-567812345678",
"nodeName": "Example Node",
"proxyIp": "cdn.example.com:443",
"customDomain": "your-custom-domain.com",
"socks5Relay": false,
"socks5Proxy": "",
"workerScriptUrl": "https://cdn.jsdelivr.net/gh/6Kmfi6HP/EDtunnel@refs/heads/main/_worker.js"
}'
curl -X POST https://cfworkerback.pages.dev/createWorker \
-H "Content-Type: application/json" \
-d '{
"email": "your-email@example.com",
"globalAPIKey": "your-global-api-key",
"workerName": "example-worker",
"uuid": "12345678-1234-5678-1234-567812345678",
"nodeName": "Example Node",
"proxyIp": "cdn.example.com:443",
"customDomain": "your-custom-domain.com",
"socks5Relay": false,
"socks5Proxy": "",
"workerScriptUrl": "https://cdn.jsdelivr.net/gh/6Kmfi6HP/EDtunnel@refs/heads/main/_worker.js"
}'
HTTP/1.1 200 OK
Content-Type: application/json
{
"url": "https://your-custom-domain.com/12345678-1234-5678-1234-567812345678",
"node": "vless://12345678-1234-5678-1234-567812345678@www.visa.com.sg:8880?encryption=none&security=none&type=ws&host=your-custom-domain.com&path=%2F%3Fed%3D2560#Example%20Node"
}
Returns a 500 status code with an error message if the worker creation fails.
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
{
"error": "Internal Server Error"
}