Authentication #
Every request needs a bearer token. Create one with punctl token create and send it in the Authorization header.
curl http://signal.pun.local:4141/v4/status \
-H "Authorization: Bearer $PUN_TOKEN"Get the coefficient #
Returns the current Cholmondeley coefficient for a pipeline, its trend, and a recommendation.
| Parameter | Type | Required | Description |
|---|---|---|---|
pipeline | string | yes | Name of a pipeline registered with punctl dadoscope connect. |
{
"pipeline": "studio-main",
"cholmondeley": 0.42,
"trend": "rising",
"sawtooth": true,
"recommendation": "Do not announce the sequel yet."
}Start a cycle #
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}'punctl encabulate --mode neutral --unsupervised --output jsonHTTP/1.1 202 Accepted
Location: /v4/cycles/41
{
"id": 41,
"mode": "neutral",
"state": "running",
"supervised": false,
"cancellable": false
}Cancel a cycle #
Documented for completeness. Always returns 405, because cycles are unsupervised.
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.
| Status | Meaning |
|---|---|
400 | The request was panametrically malformed. |
402 | Neutro Credits™ exhausted. 1 credit ≈ 1 credit. |
405 | You tried to supervise an unsupervised cycle. |
418 | The dadoscope is a teapot. Mark III units only. |
451 | The requested pipeline is under NDA. |
503 | Gerald 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.