# POST /api/control-flow/merge

POST /api/control-flow/merge

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

POST /api/control-flow/merge



```http
POST /api/control-flow/merge
```


## Contract

`{name,type,typeVersion?,branches}`; 201 new typed merge. Alternatives 2–8; custom type versions are required and exact, primitive types have no version.

## 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.
