MediaSFU API

MediaSFU API as documented publicly: 19 operations. Contract generated from the documentation by API Evangelist (2026-11-18); not the provider's own document.

GitHub OpenAPI

Operations 19

GET /v1/balance Usage and balance – Remaining minutes GET /v1/balance. #
POST /v1/eventssettings Webhooks – Set an account default with POST /v1/eventssettings. #
POST /v1/meetings/{meetingid}/external-sessions/{sessionid}/participant-actions Submit an allowed poll vote, chat message, or participant request for an external session. #
GET /v1/meetings/{meetingid}/external-sessions/{sessionid}/participant-state Fetch participant media state, recent chat, polls, breakout assignment, and whiteboard assignment for an external session. #
GET /v1/recordings GET /v1/recordings returns recordings #
GET /v1/room/logs GET /v1/room/logs : Pass roomName and fieldKey: usageLogs, messages or recordUsageLogs. #
GET /v1/rooms List GET /v1/rooms #
POST /v1/rooms POST /v1/rooms #
GET /v1/rooms/stats Counts GET /v1/rooms/stats #
POST /v1/sipcall/{sipcallid}/end End POST /v1/sipcall/:sipCallId/end #
POST /v1/sipcall/{sipcallid}/hold Hold, unhold POST /v1/sipcall/:sipCallId/hold #
POST /v1/sipcall/{sipcallid}/start-agent Start or stop the agent POST /v1/sipcall/:sipCallId/start-agent #
GET /v1/sipcall/{sipcallid}/state Do Request Read state GET /v1/sipcall/:sipCallId/state #
POST /v1/sipcall/{sipcallid}/switch-source Hand to a person or back POST /v1/sipcall/:sipCallId/switch-source #
GET /v1/sipcall/list List calls GET /v1/sipcall/list #
GET /v1/sipcall/logs GET /v1/sipcall/logs : Pass roomName or sipCallId, and fieldKey: transcripts or callSummary. #
POST /v1/sipcall/outgoingCall POST /v1/sipcall/outgoingCall #
GET /v1/sipcall/summary Totals GET /v1/sipcall/summary #
POST /v1/sipconfigs Add a number. Bring your own SIP number with POST /v1/sipconfigs #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mediasfu-com:mediasfu-com-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mediasfu-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: MediaSFU API
  version: '2026-11-18'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-18: 19 operation(s) read from 7 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; MediaSFU has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 2
    documentation: 17
    pages-with-code: 4
    pages-read: 7
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-18'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://mediasfu.com/docs/api/react-native
  - https://mediasfu.com/docs/api/react-native-expo
  - https://mediasfu.com/docs/operations/platform-protocols-http
  - https://mediasfu.com/docs/api-reference
  - https://mediasfu.com/docs/api-reference/http
  - https://mediasfu.com/docs/usage/llm-reference
  - https://mediasfu.com/docs/api-reference/http/rooms
servers:
- url: https://<node>.mediasfu.com
paths:
  /v1/balance:
    get:
      operationId: get_v1_balance
      tags:
      - Balance
      summary: Usage and balance – Remaining minutes GET /v1/balance.
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: scope
        in: query
        required: false
        schema:
          type: string
        description: Optional scope, e.g., sandbox or production.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1BalanceResponse'
      x-evidence:
        kind: documentation
  /v1/eventssettings:
    post:
      operationId: post_v1_eventssettings
      tags:
      - Eventssettings
      summary: Webhooks – Set an account default with POST /v1/eventssettings.
      x-source: https://mediasfu.com/docs/usage/llm-reference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1EventssettingsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1EventssettingsResponse'
      x-evidence:
        kind: documentation
  /v1/meetings/{meetingid}/external-sessions/{sessionid}/participant-actions:
    post:
      operationId: post_v1_meetings_meetingid_external_sessions_sessionid_participant_actions
      tags:
      - Meetings
      summary: Submit an allowed poll vote, chat message, or participant request for an external session.
      x-source: https://mediasfu.com/docs/operations/platform-protocols-http
      parameters:
      - name: meetingid
        in: path
        required: true
        schema:
          type: string
      - name: sessionid
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1MeetingsMeetingidExternalSessionsSessionidParticipantA'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/meetings/{meetingid}/external-sessions/{sessionid}/participant-state:
    get:
      operationId: get_v1_meetings_meetingid_external_sessions_sessionid_participant_state
      tags:
      - Meetings
      summary: Fetch participant media state, recent chat, polls, breakout assignment, and whiteboard assignment for an external session.
      x-source: https://mediasfu.com/docs/operations/platform-protocols-http
      parameters:
      - name: meetingid
        in: path
        required: true
        schema:
          type: string
      - name: sessionid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/recordings:
    get:
      operationId: get_v1_recordings
      tags:
      - Recordings
      summary: GET /v1/recordings returns recordings
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: action
        in: query
        required: true
        schema:
          type: string
        description: get
      - name: name
        in: query
        required: false
        schema:
          type: string
        description: meetingID
      - name: startIndex
        in: query
        required: false
        schema:
          type: integer
      - name: pageSize
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1RecordingsResponse'
      x-evidence:
        kind: documentation
  /v1/room/logs:
    get:
      operationId: get_v1_room_logs
      tags:
      - Room
      summary: 'GET /v1/room/logs : Pass roomName and fieldKey: usageLogs, messages or recordUsageLogs.'
      description: 'Returns a plain JSON array of the requested logs. Add ?envelope=1 (or header X-MediaSFU-Response: envelope) to get the standard
        { success, data } envelope.'
      x-source: https://mediasfu.com/docs/api-reference/http
      parameters:
      - name: roomName
        in: query
        required: true
        schema:
          type: string
        description: Name of the room to retrieve logs for.
      - name: fieldKey
        in: query
        required: true
        schema:
          type: string
        description: 'Type of log to retrieve. Allowed values: usageLogs, messages, recordUsageLogs.'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/rooms:
    get:
      operationId: get_v1_rooms
      tags:
      - Rooms
      summary: List GET /v1/rooms
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: action
        in: query
        required: true
        schema:
          type: string
        description: get
      - name: eventStatus
        in: query
        required: false
        schema:
          type: string
        description: active
      - name: startIndex
        in: query
        required: false
        schema:
          type: integer
      - name: pageSize
        in: query
        required: false
        schema:
          type: integer
      - name: meetingID
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1RoomsResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_v1_rooms
      tags:
      - Rooms
      summary: POST /v1/rooms
      x-source: https://mediasfu.com/docs/api/react-native
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: javascript
        snippet: 'fetch("https://mediasfu.com/v1/rooms/", { * method: "POST", * headers: { * "Content-Type": "application/json", * Authorization:
          `Bearer ${actualApiUserName}:${actualApiKey}`, * }, * body: JSON.stringify(payload), * })'
  /v1/rooms/stats:
    get:
      operationId: get_v1_rooms_stats
      tags:
      - Rooms
      summary: Counts GET /v1/rooms/stats
      x-source: https://mediasfu.com/docs/usage/llm-reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1RoomsStatsResponse'
      x-evidence:
        kind: documentation
  /v1/sipcall/{sipcallid}/end:
    post:
      operationId: post_v1_sipcall_sipcallid_end
      tags:
      - Sipcall
      summary: End POST /v1/sipcall/:sipCallId/end
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: sipcallid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1SipcallSipcallidEndResponse'
      x-evidence:
        kind: documentation
  /v1/sipcall/{sipcallid}/hold:
    post:
      operationId: post_v1_sipcall_sipcallid_hold
      tags:
      - Sipcall
      summary: Hold, unhold POST /v1/sipcall/:sipCallId/hold
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: sipcallid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1SipcallSipcallidHoldResponse'
      x-evidence:
        kind: documentation
  /v1/sipcall/{sipcallid}/start-agent:
    post:
      operationId: post_v1_sipcall_sipcallid_start_agent
      tags:
      - Sipcall
      summary: Start or stop the agent POST /v1/sipcall/:sipCallId/start-agent
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: sipcallid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1SipcallSipcallidStartAgentResponse'
      x-evidence:
        kind: documentation
  /v1/sipcall/{sipcallid}/state:
    get:
      operationId: get_v1_sipcall_sipcallid_state
      tags:
      - Sipcall
      summary: Do Request Read state GET /v1/sipcall/:sipCallId/state
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: sipcallid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1SipcallSipcallidStateResponse'
      x-evidence:
        kind: documentation
  /v1/sipcall/{sipcallid}/switch-source:
    post:
      operationId: post_v1_sipcall_sipcallid_switch_source
      tags:
      - Sipcall
      summary: Hand to a person or back POST /v1/sipcall/:sipCallId/switch-source
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: sipcallid
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1SipcallSipcallidSwitchSourceRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1SipcallSipcallidSwitchSourceResponse'
      x-evidence:
        kind: documentation
  /v1/sipcall/list:
    get:
      operationId: get_v1_sipcall_list
      tags:
      - Sipcall
      summary: List calls GET /v1/sipcall/list
      x-source: https://mediasfu.com/docs/usage/llm-reference
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: integer
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: direction
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1SipcallListResponse'
      x-evidence:
        kind: documentation
  /v1/sipcall/logs:
    get:
      operationId: get_v1_sipcall_logs
      tags:
      - Sipcall
      summary: 'GET /v1/sipcall/logs : Pass roomName or sipCallId, and fieldKey: transcripts or callSummary.'
      description: 'Returns a plain JSON array of the requested SIP call logs. Add ?envelope=1 (or header X-MediaSFU-Response: envelope) to get
        the standard { success, data } envelope.'
      x-source: https://mediasfu.com/docs/api-reference/http
      parameters:
      - name: roomName
        in: query
        required: false
        schema:
          type: string
        description: Name of the room associated with the SIP call.
      - name: sipCallId
        in: query
        required: false
        schema:
          type: string
        description: Identifier of the SIP call.
      - name: fieldKey
        in: query
        required: true
        schema:
          type: string
        description: 'Type of log to retrieve. Allowed values: transcripts, callSummary.'
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/sipcall/outgoingCall:
    post:
      operationId: post_v1_sipcall_outgoingCall
      tags:
      - Sipcall
      summary: POST /v1/sipcall/outgoingCall
      x-source: https://mediasfu.com/docs/usage/llm-reference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1SipcallOutgoingcallRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://mediasfu.com/v1/sipcall/outgoingCall \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Bearer\
          \ $MEDIASFU_API_USERNAME:$MEDIASFU_API_KEY\" \\ -d '{\"calledDid\":\"+15557654321\",\"callerIdNumber\":\"+15551234567\",\"roomName\"\
          :\"s1a2b3c4\",\"initiatorName\":\"host\",\"callPurpose\":\"Confirm tomorrow 10am appointment\",\"callObjective\":\"Confirmed or rescheduled\"\
          }' \n callerIdNumber is your SIP"
  /v1/sipcall/summary:
    get:
      operationId: get_v1_sipcall_summary
      tags:
      - Sipcall
      summary: Totals GET /v1/sipcall/summary
      x-source: https://mediasfu.com/docs/usage/llm-reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1SipcallSummaryResponse'
      x-evidence:
        kind: documentation
  /v1/sipconfigs:
    post:
      operationId: post_v1_sipconfigs
      tags:
      - Sipconfigs
      summary: Add a number. Bring your own SIP number with POST /v1/sipconfigs
      x-source: https://mediasfu.com/docs/usage/llm-reference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV1SipconfigsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1SipconfigsResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetV1BalanceResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates if the request succeeded.
        data:
          type: object
          description: Contains balance information.
    PostV1EventssettingsRequest:
      type: object
      properties:
        action:
          type: string
          description: Action to perform, e.g., "update" or "create".
        webhookUrl:
          type: string
          description: Public HTTPS URL to receive webhook events.
        webhookSecret:
          type: string
          description: Secret used to sign webhook payloads.
      required:
      - action
      - webhookUrl
    PostV1EventssettingsResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates if the request succeeded.
        data:
          type: object
          description: Result payload (if any).
    PostV1MeetingsMeetingidExternalSessionsSessionidParticipantA:
      type: object
      properties:
        action:
          type: string
          description: The type of action, e.g., 'poll.vote'.
        pollID:
          type: string
          description: Identifier of the poll when voting.
        choice:
          type: string
          description: Choice index for the poll vote.
      required:
      - action
    GetV1RecordingsResponse:
      type: object
      properties:
        success:
          type: boolean
        recordings:
          type: array
          description: objects with url, size and duration
    GetV1RoomsResponse:
      type: object
      properties:
        success:
          type: boolean
        rooms:
          type: array
    GetV1RoomsStatsResponse:
      type: object
      properties:
        success:
          type: boolean
        stats:
          type: object
    PostV1SipcallSipcallidEndResponse:
      type: object
      properties:
        success:
          type: boolean
    PostV1SipcallSipcallidHoldResponse:
      type: object
      properties:
        success:
          type: boolean
    PostV1SipcallSipcallidStartAgentResponse:
      type: object
      properties:
        success:
          type: boolean
    GetV1SipcallSipcallidStateResponse:
      type: object
      properties:
        success:
          type: boolean
        state:
          type: object
    PostV1SipcallSipcallidSwitchSourceRequest:
      type: object
      properties:
        targetType:
          type: string
        humanName:
          type: string
      required:
      - targetType
      - humanName
    PostV1SipcallSipcallidSwitchSourceResponse:
      type: object
      properties:
        success:
          type: boolean
    GetV1SipcallListResponse:
      type: object
      properties:
        success:
          type: boolean
        calls:
          type: array
    PostV1SipcallOutgoingcallRequest:
      type: object
      properties:
        calledDid:
          type: string
        callerIdNumber:
          type: string
        roomName:
          type: string
        initiatorName:
          type: string
        callPurpose:
          type: string
        callObjective:
          type: string
    GetV1SipcallSummaryResponse:
      type: object
      properties:
        success:
          type: boolean
        summary:
          type: object
    PostV1SipconfigsRequest:
      type: object
      properties:
        action:
          type: string
          description: create
        contactNumber:
          type: string
        provider:
          type: string
        supportSipActive:
          type: boolean
        supportSipNameCalls:
          type: boolean
        allowOutgoing:
          type: boolean
      required:
      - action
      - contactNumber
      - provider
      - supportSipActive
      - supportSipNameCalls
      - allowOutgoing
    PostV1SipconfigsResponse:
      type: object
      properties:
        success:
          type: boolean
        sipConfigId:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Balance
- name: Eventssettings
- name: Meetings
- name: Recordings
- name: Room
- name: Rooms
- name: Sipcall
- name: Sipconfigs