Skip to content

Reference

API: Broadcast

Markdown version

MethodPathWhat it doesScope
GET/v1/broadcastsWhere your request logs are sent (OpenTelemetry, webhook, S3, Langfuse, Datadog, PostHog), with each one's ceiling and healthgateway:read
POST/v1/broadcastsAdd 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/:idDelete a destination (web app only); its sealed secret goes with it (web app only)gateway:write
PATCH/v1/broadcasts/:idEnable 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.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.