manifest: qloops.loop/v1

# Move source data to a configured receiver without a manual copy-and-paste step.
# No model inference is required.

id: webhook-relay
name: "Webhook relay: move data, call nothing"
version: 1.1.0
description: >
  Reads a JSON endpoint and forwards it to a webhook. No model call is needed.
  Source and destination services may require credentials or charge for requests.
owner: oleg
enabled: true

triggers:
  - kind: manual

settings:
  budgetUsd: 0.05

steps:
  - id: wr-fetch
    kind: fetch
    config:
      name: "Read source"
      url: "{{env.QLOOP_SOURCE_URL}}"
      format: json
      timeoutSec: "20"

  - id: wr-send
    kind: api-request
    config:
      name: "Forward it"
      method: POST
      url: "{{env.QLOOP_WEBHOOK_URL}}"
      expect: "2xx"
      timeoutSec: "20"
      body: '{"forwarded":"{{steps.Read source.output.json}}","run":"{{run.id}}"}'
