---
title: "Create a trigger-based transfer (gated)"
method: POST
path: "/api/route/conditional"
tags: ["primitives"]
---

# Create a trigger-based transfer (gated)

`POST /api/route/conditional`

## Request

- Base URL: `https://api.anygas.xyz/svc`
- URL: `https://api.anygas.xyz/svc/api/route/conditional`
- Auth: none declared

Plans & stores a trigger-based transfer (priceAbove/priceBelow against on-chain feeds, or timeAfter). Same double gate as batch; default live:false simulates. Rate limit 30/min.

## Request body

- ConditionalRequest
  - `route` object, required
  - `when` object, required
    - `type` 'priceAbove' | 'priceBelow' | 'timeAfter', required
    - `asset` string: Required for price conditions, e.g. ETH/USD, BTC/USD, USDG/USD.
    - `value` union: Numeric price for price conditions; epoch/ISO for timeAfter.
      - number
      - string
  - `live` boolean

## Response `200`

Conditional record

- ConditionalResult
  - `id` string
  - `route` object
  - `when` object
  - `live` boolean
  - `status` string
  - `runs` object[]
  - `note` string

---

[API](https://skmtc.dev/anygas/apis/robyn-anygas-api.md) · [All operations](https://skmtc.dev/anygas/apis/robyn-anygas-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anygas/apis/robyn-anygas-api/revisions/9b7498be8304?raw)
