All endpoints
cURL to Code
POST
/api/v1/tools/curl-to-codeTurn a cURL command into JavaScript Fetch, C# HttpClient or Python Requests code.
Authentication
Requires an API key in the X-API-Key header.
Try it
POST
/api/v1/tools/curl-to-codeParameters
commandstringrequiredA curl command to convert.
targetstringoptionalTarget language. Default javascript.
javascriptcsharppythonRequest body
{
"command": "curl -X POST https://api.example.com/users -H \"Content-Type: application/json\" -d '{\"name\":\"Ada\"}'",
"target": "javascript"
}Response codes
200Success.400Invalid request — check your body or parameters.401Missing or invalid API key.403The API key is not scoped to this endpoint.429Rate limit exceeded — retry after a short wait.
Language
cURL
Request
curl -X POST https://utilerio.com/api/v1/tools/curl-to-code \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"command":"curl -X POST https://api.example.com/users -H \"Content-Type: application/json\" -d '{\"name\":\"Ada\"}'","target":"javascript"}'Response
{ "code": "fetch(\"https://api.example.com/users\", {\n method: \"POST\",\n ...\n});" }
