# POST /api/repeats

POST /api/repeats

Canonical URL: https://opennodeflow.dev/wiki/api-post-api-repeats/
JSON reference: https://opennodeflow.dev/wiki/api-post-api-repeats/index.json
Source snapshot: 2026-10-23

POST /api/repeats



```http
POST /api/repeats
```


## Contract

`{name,repeat:{bodyDefinitionId,bodyDefinitionVersion,carryInput,resultOutput,stopOutput,indexInput?,maxIterations}}`; 201 new node. Name 1–100 characters; iterations 1–1,000. The exact pinned subflow needs identical carry/result types and a separate boolean stop output.

## Request



```json
{
  "path": [],
  "query": [],
  "body": []
}
```



## Response



```json
{
  "statuses": [
    201
  ],
  "fields": []
}
```



## Guard

Trusted-host Host/Origin boundary; per-route revision, version and validation checks apply.

## Use this endpoint

The base URL is your own ONF host, for example `http://localhost:4310`. Read [HTTP API usage](/wiki/http-api/) for request bodies, revision guards, accepted-run behavior and errors.

A source-registered route is not a promise that every real provider or every input combination has been tested. Use [agent safety](/wiki/agent-safety/) when an operation can run code or change external systems.

---

## Documentation provenance

- `server/control-flow.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
