---
title: "Server-sent events for route lifecycle"
method: GET
path: "/api/route/stream"
tags: ["routing"]
---

# Server-sent events for route lifecycle

`GET /api/route/stream`

## Request

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

Streams the route status object on every change instead of making you poll. Emits one event immediately so a late subscriber is caught up, then event: status on each change, and event: done on a terminal state (DONE/FAILED/REFUNDED) before closing. Heartbeat comments keep idle proxies open. Bounded to 15 minutes and 50 concurrent streams.

## Query parameters

- `id` string, required

## Response `200`

text/event-stream of status events

## Other responses

- `400`: Typed error - branch on errorCode, never on the message text
- `429`: Typed error - branch on errorCode, never on the message text

---

[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)
