Esc

Searches titles and headings. Full-text search is on the roadmap, directionally.

API reference

API reference

The PUN exposes a REST API on port 4141 of the signal node. It is not reachable from the internet, because nothing about the PUN is.

Authentication #

Every request needs a bearer token. Create one with punctl token create and send it in the Authorization header.

bash
curl http://signal.pun.local:4141/v4/status \
  -H "Authorization: Bearer $PUN_TOKEN"

Get the coefficient #

GET /v4/coefficient?pipeline={pipeline}

Returns the current Cholmondeley coefficient for a pipeline, its trend, and a recommendation.

ParameterTypeRequiredDescription
pipelinestringyesName of a pipeline registered with punctl dadoscope connect.
Response · 200 OK
{
  "pipeline": "studio-main",
  "cholmondeley": 0.42,
  "trend": "rising",
  "sawtooth": true,
  "recommendation": "Do not announce the sequel yet."
}

Start a cycle #

POST /v4/cycles

Starts a neutroencabulation cycle. Returns 202 Accepted immediately. The cycle cannot be paused, inspected in detail or cancelled. "unsupervised": false is valid JSON and nothing else.

curl -X POST http://signal.pun.local:4141/v4/cycles \
  -H "Authorization: Bearer $PUN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode": "neutral", "unsupervised": true}'
Response · 202 Accepted
HTTP/1.1 202 Accepted
Location: /v4/cycles/41

{
  "id": 41,
  "mode": "neutral",
  "state": "running",
  "supervised": false,
  "cancellable": false
}

Cancel a cycle #

DELETE /v4/cycles/{id}

Documented for completeness. Always returns 405, because cycles are unsupervised.

Response · 405 Method Not Allowed
HTTP/1.1 405 Method Not Allowed

{
  "error": "supervision_not_permitted",
  "message": "Die Steuerungslogik ist nicht verhandelbar."
}

Errors #

Errors use standard HTTP status codes with a JSON body. The message field is in German, for precision.

StatusMeaning
400The request was panametrically malformed.
402Neutro Credits™ exhausted. 1 credit ≈ 1 credit.
405You tried to supervise an unsupervised cycle.
418The dadoscope is a teapot. Mark III units only.
451The requested pipeline is under NDA.
503Gerald is on lunch.

Rate limits #

60 requests per minute per token, or 41 if you are asking about the cloud tier. Exceeding the limit returns 429 and a short essay on patience.

Was this page helpful?

Last updated October 14, 2026 by Gerald