Skip to main content
POST
Create a dynamic route

Authorizations

Authorization
string
header
required

Management API authentication. Pass an op-mak-… management token as a Bearer token. Runtime op-… API keys are rejected with 403 — they belong on the data-plane endpoints. Mint a management key from the platform UI under Settings → API keys.

Body

application/json
name
string
required

Route name; callers invoke the route as dynamic/. Lowercase letters and digits plus '.' '_' '-'; up to 128 characters; unique per organization.

deploy
boolean

When true the draft is validated and deployed as version 1 in the same call; the response then carries deployed_version in meta.

description
string

Free-text description shown in the platform.

graph
object

Routing graph object with elements. Each node has id, type, outputs mapping output names to {elementId: targetID}, and optional properties. Include START/start and END/end. Supported types: start, end, model, pool, conditional, percentage, classifier, observe. Omit graph on create to seed a default; copy its returned draft.graph to customize. See tool description for node properties and topology.

Example:
layout
object

Editor canvas positions keyed by element id. Opaque to the gateway; omit when authoring from code.

note
string

Release note recorded on the deployed version. Only read when deploy is true.

Response

Successful response

data
object
meta
object
Last modified on September 17, 2026