SynapSynapDocs
Hub REST API

Loops

The Loops operations of the Hub REST API (1 operation).

For BuildersOpen-source podSynap CloudGenerated from Synap-core/backend@c31e261ab (main)
POST
/loops/apply

Authorization

bearerAuth
headerAuthorizationBearer <API key>

Pod API key (Bearer) issued via /api/hub/setup/agent or pod admin tooling. Browser/web clients may use the X-Session-Token header instead. See GET /api/hub/auth/status to introspect the calling key.

Request Body

application/json
  1. body
definition?
templateKey?string
params?
workspaceId?string
Formatuuid

Response Body

Applied loop (created + proposed resources)

application/json
  1. response
loopKey*string
created*
proposals*array<string>
Example Request
curl -X POST 'https://pod.example.com/api/hub/loops/apply' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "loopKey": "string",  "created": {    "playbooks": [      {        "property1": null,        "property2": null      }    ],    "triggers": [      {        "property1": null,        "property2": null      }    ]  },  "proposals": [    "string"  ]}