Codemorphis API
For automation and integrations use the REST API. Every request requires an API key in the X-API-Key header; the API has no translation limit.
curl -X POST https://YOUR-HOST/api/translate/racket-to-java \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code": "(define (sq x) (* x x))", "javaVersion": 11}'
POST /api/translate/racket-to-javaPOST /api/translate/java-to-racket- Response: JSON with a
resultfield and a list of diagnostics - Missing or wrong key:
401