Index of every page on this site: llms.txt
All skills
Run it yourself

Fishjam platform fundamentals — domain model and auth shared by all SDKs. Covers glossary (room, peer, track, agent, streamer, viewer), the four room types (conference / audio_only / livestream / audio_only_livestream), two-tier auth (management vs peer tokens), Sandbox vs production, WebSocket-vs-webhook notifications and the 18-event taxonomy, REST endpoint list, and the end-to-end auth/join flow. Read this first for any Fishjam task. Trigger on: 'Fishjam', 'fishjam.io', 'fishjam.swmansion.com', 'fishjam dashboard', 'management token', 'peer token', 'sandbox API', 'useSandbox', 'room manager', 'livestream room', 'audio-only room', 'conference room', 'Fishjam ID', 'room types', 'auth flow', 'webhook', 'webhookUrl', 'FishjamWSNotifier', 'FishjamNotifier', 'notifier vs webhook', 'ServerMessage', 'peerAdded', 'peerConnected', 'roomCreated', 'refreshPeerToken', 'rest endpoint', 'OpenAPI', 'llms.txt'.

  • 10 files
  • 54.4 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/software-mansion-labs/skills/platform

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

rest-endpoints.md

≈1.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Fishjam REST API Endpoints

The full HTTP surface exposed by Fishjam's server. The server SDKs wrap these — prefer the SDK whenever possible. Use this reference when calling Fishjam from a language without an SDK, debugging a wire problem, or inspecting OpenAPI / generated clients directly.

Authoritative spec: fishjam-server-openapi.yaml in the documentation repo (upstream: https://github.com/fishjam-cloud/documentation/blob/main/static/api/fishjam-server-openapi.yaml).

Auth

Every request requires:

Authorization: Bearer <management-token>

(Token issued from the Fishjam Dashboard. See auth-model.md.)

Base URL

For Fishjam Cloud:

https://fishjam.io/api/v1/connect/<your-fishjam-id>

The Fishjam ID is the hex string shown in the Dashboard. All paths below are appended to this base. For self-hosted Fishjam, pass the full instance URL instead of a bare ID. The SDKs handle this for you via the fishjamId config.

Rooms

Method Path Purpose
POST /room Create a room. Body (RoomConfig): { roomType?, public?, webhookUrl?, videoCodec?, maxPeers?, batchWebhookNotifications? }. Returns 201 with { data: { room, fishjam_url } } (every success response in this API is wrapped in a top-level data envelope).
GET /room List all rooms in the instance.
GET /room/{room_id} Get one room with its peers and tracks.
DELETE /room/{room_id} Delete a room. All peers are disconnected.

Peers

Method Path Purpose
POST /room/{room_id}/peer Create a peer in the room. Body: { type: 'webrtc' | 'agent' | 'vapi', options: PeerOptionsWebRTC | PeerOptionsAgent | PeerOptionsVapi } (the type discriminator selects which options shape is valid). Returns { peer, token, websocket_url }.
DELETE /room/{room_id}/peer/{id} Remove a peer.
POST /room/{room_id}/peer/{id}/refresh_token Issue a new peer token (same 24h validity — see auth-model.md). Returns { token }.
POST /room/{room_id}/peer/{id}/subscribe_peer?peer_id={publisher_peer_id} In manual subscribe mode: subscribe id to all tracks published by the peer named in the peer_id query string. Empty body.
POST /room/{room_id}/peer/{id}/subscribe_tracks In manual subscribe mode: subscribe id to specific tracks. Body: { "track_ids": ["...", "..."] } (required).

The subscribePeer and subscribeTracks endpoints only matter for peers created with subscribeMode: 'manual' (set on the peer's PeerOptionsWebRTC / PeerOptionsAgent / PeerOptionsVapi, not on the room). In the default auto mode each peer is subscribed to every other peer's tracks automatically.

Livestream — direct management

For lower-level livestream management (independent of the room):

Method Path Purpose
GET /livestream List livestreams.
POST /livestream Create a livestream directly.
GET /livestream/{stream_id} Get one livestream.
DELETE /livestream/{stream_id} Delete a livestream.
POST /livestream/{stream_id}/streamer Add a streamer to an existing livestream.
DELETE /livestream/{stream_id}/streamer/{streamer_id} Remove a streamer.
POST /livestream/{stream_id}/viewer Create a viewer for the stream and return its credentials.
DELETE /livestream/{stream_id}/viewer/{viewer_id} Revoke a viewer (kicks the WHEP session).

Most apps interact with livestreams via the room endpoints; the /livestream family is for advanced flows.

Track Forwarding

Method Path Purpose
POST /room/{room_id}/track_forwardings Forward the room's tracks into a composition. Body: { compositionURL }. See ../composition/room-composition.md; the Composition API itself is in ../composition/rest-endpoints.md.

MoQ

Method Path Purpose
POST /moq/token Issue a MoQ JWT. Body (MoqTokenConfig): { publishPath?, subscribePath? }. Returns { token }. See room-types.md for MoQ context.

Response shape

JSON for all responses except webhook deliveries. Errors come back as HTTP 4xx/5xx with a JSON body — the SDKs map these to typed exceptions (exceptions/ directory in the JS SDK, errors.py in the Python SDK).

Deprecation header

Responses may carry x-fishjam-api-deprecated: <message> when you call a deprecated endpoint or use a deprecated request shape. The JS SDK logs this once per process and continues; treat it as a TODO to read the changelog and migrate.

OpenAPI spec

The full OpenAPI YAML lives at:

Use it to:

  • Generate clients for languages without an official SDK.
  • Inspect exact request/response schemas including optional fields.
  • Verify deprecation status before you commit to a flow.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 43cde80. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated last month

README badge

README badge for software-mansion-labs/skills/platform