Reference
API: Broadcast
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /v1/broadcasts | Where your request logs are sent (OpenTelemetry, webhook, S3, Langfuse, Datadog, PostHog), with each one's ceiling and health | gateway:read |
| POST | /v1/broadcasts | Add a destination for your request logs (web app only: it holds a secret). Sent in batches, within its monthly ceiling. (web app only) | gateway:write |
| DELETE | /v1/broadcasts/:id | Delete a destination (web app only); its sealed secret goes with it (web app only) | gateway:write |
| PATCH | /v1/broadcasts/:id | Enable or disable a destination, or change its sampling and ceiling. Agents may only disable it or lower them. | gateway:write |
Examples
GET /v1/broadcasts
Where your request logs are sent (OpenTelemetry, webhook, S3, Langfuse, Datadog, PostHog), with each one's ceiling and health
curl -s "https://manage.restolayer.com/v1/broadcasts" \
-H "Authorization: Bearer $LG_API_KEY"const res = await fetch(`https://manage.restolayer.com/v1/broadcasts`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.LG_API_KEY}` },
});
const data = await res.json();PATCH /v1/broadcasts/$ID
Enable or disable a destination, or change its sampling and ceiling. Agents may only disable it or lower them.
curl -s -X PATCH "https://manage.restolayer.com/v1/broadcasts/$ID" \
-H "Authorization: Bearer $LG_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://manage.restolayer.com/v1/broadcasts/${id}`, {
method: "PATCH",
headers: { authorization: `Bearer ${process.env.LG_API_KEY}`, "content-type": "application/json" },
body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();Request and response schemas: https://www.restolayer.com/openapi.json. All resources: API reference.