Creates a new Cloudflare worker with optional proxy settings.
Important Note: You can only use one of proxyIp, socks5Relay, or socks5Proxy. They cannot be set simultaneously.
POST /createWorker HTTP/1.1
Host: cfworkerback-pages5.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": ""
}
curl -X POST https://cfworkerback-pages5.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": ""
}'
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"
}