Skip to main content
Version: Next

Reference

Describes APIs for direct interaction with Fishjam.

Fishjam publishes documentation for the Sandbox API and Fishjam Server APIs.

Sandbox API​

Sandbox API OpenAPI

See also: What is the Sandbox API?

Server​

Fishjam Server provides a REST API for managing rooms and peers, and Protobufs for receiving structured live updates from the server. The notifications can be configured using Webhook or Websocket.

REST API​

Server REST API Reference

Protobufs​

Webhook​

When using webhooks for receiving notifications, configure your webhook URL in the Webhooks tab of the Fishjam Dashboard. Fishjam then delivers all notifications to that URL.

The HTTP POST to your webhook URL uses "application/x-protobuf" content type. The body is binary data, that represents encoded ServerMessage.

Setting batchWebhookNotifications to true in the RoomConfig is recommended. Fishjam then coalesces several notifications into one POST: the body is still a single ServerMessage, but its notification_batch field holds a NotificationBatch, which carries the individual notifications as a repeated list of ServerMessages (see server_notifications.proto). This delivers notifications faster and with fewer requests. The SDK decoders unwrap the batch for you.

For more information see also server setup documentation

Websocket​

After opening the Websocket connection to https://fishjam.io/api/v1/connect/{fishjamId}/socket/server/websocket, the first message that must be sent is an AuthRequest, with a valid Management Token.

Next, you can should subscribe to notifications by sending SubscribeRequest event with SERVER_NOTIFICATION event type.