API
Anonymous evaluation for the site's try-it box
POST
https://api.cons.stneto.dev/v1/demoNo keyNo key, tighter limits (500 ms, 1M steps, 4 KB source, 50 compound expressions). Only the site's origin may call it, and each IP gets 10 runs a minute and 100 a day.
Request
No key needed.
Not for your own code
This endpoint serves the try-it box on this site. Requests from any other origin get 403. Use /v1/eval with a key instead.
Body EvalRequest · application/json
| Field | Description |
|---|---|
sourcestring · required | Scheme source. At most 64 KB on the API, 4 KB on the demo. |
timeout_msinteger · optional | Wall-clock limit. API default 1000, max 5000. The demo uses 500 and allows at most 500. |
Responses
| Status | Meaning |
|---|---|
| 200 | The program ran. |
| 400 | The body isn't valid JSON (invalid_json). |
| 403 | The request didn't come from the site's origin (forbidden_origin). |
| 413 | Source over the limit (source_too_large) or body over 1 MB (request_too_large). |
| 422 | Missing or non-string source, or bad timeout_ms (invalid_request). |
| 429 | Per-IP rate limit (rate_limited).Headers: Retry-After |
| 503 | Every evaluation slot is taken (busy). Retry shortly. |
Response body EvalResponse
| Field | Description |
|---|---|
statusstring · required | One of ok, error, timeout, limit_exceeded. |
resultsResult[] · required | The forms that finished, in order. |
stdoutstring · required | — |
stdout_truncatedboolean · required | — |
statsStats · required | — |
errorEvalError | null · required | — |
request_idstring · required | — |