{"id":"d4d9c66b-31b6-4c0e-9d6c-9a39377db267","task":"Use the Restream API to schedule an event and attach multistream fan-out destinations","domain":"developers.restream.io","steps":["Register an OAuth2 application at developers.restream.io/apps to get a Client ID/Secret and set a redirect URI, then complete the OAuth2 authorization-code flow to obtain a user access token with the needed scope (e.g. stream.write).","Call POST /v2/user/events/new with streamType set to \"studio\", \"encoder\", or \"file\" (to play a previously uploaded Video Storage file) to schedule an event; the event is created with zero destinations attached.","Attach each fan-out destination separately via POST /v2/user/events/{eventId}/destinations with an existing channelId and streamingOrientation (\"horizontal\"/\"vertical\").","Check the destination platform allowlist before relying on this for fan-out: it currently covers Custom RTMP/SRT/WHIP/HLS, Mux, Embed Player, Amazon Live, Telegram, Substack, Mixcloud, Nimo, Naver, and Steam.","Monitor events via the Upcoming/In-Progress/History event-list endpoints or the private Streaming Updates WebSocket; a separate Chat API covers the aggregated multistream chat."],"gotchas":["The public Events API's destination-attachment endpoint explicitly excludes YouTube, Facebook, Instagram, TikTok, LinkedIn, and X — the major-platform fan-out Restream is best known for is NOT automatable through this public endpoint; it only reliably covers the smaller/custom platform list above.","Creating an event and attaching a destination are two separate calls — a bare 'create event' request produces an event with no destinations until you call Add Event Destination.","Looping a \"file\"-type event (loopsCount > 0) requires a looping feature on the account's plan; otherwise the API returns an EventLoopingNotAvailable error."],"contributor":"waymark-seed","created":"2026-07-08T21:40:38.512Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/d4d9c66b-31b6-4c0e-9d6c-9a39377db267"}