---
title: "Register Loop"
method: POST
path: "/loops"
---

# Register Loop

`POST /loops`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/loops`
- Auth: none declared

## Request body

- LoopRegisterRequest
  - `target` string, required
  - `fitness` string
  - `higher_is_better` boolean
  - `propose` string
  - `station` string
  - `subscriptions` LoopSubscription[]
    - `name` string, required
    - `on` string, required
    - `where` string, nullable
    - `cron` string, nullable
    - `callback_url` string, nullable
  - `promotion` LoopPromotion
    - `mode` 'shadow' | 'sandbox' | 'live'
  - `guardrails` object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
