@videosdk.live/server-sdk
    Preparing search index...

    Class VideoSDK

    The VideoSDK server SDK client.

    Credentials fall back to the VIDEOSDK_API_KEY / VIDEOSDK_SECRET env vars.

    const vsdk = new VideoSDK();                                   // env-var fallback
    const vsdk = new VideoSDK({ apiKey, secret }); // explicit
    const room = await vsdk.rooms.create({ geoFence: "sg001" });
    Index

    AI Agents API — dispatch agents into rooms / calls.

    alertRules: AlertRulesResource

    Alert rules API (+ notification channels & metrics).

    Raw HTTP escape hatch (vsdk.api.get/post/...) with auth + retries applied.

    apiEndpoint: string

    The resolved API endpoint.

    Batch-calls API — bulk outbound phone campaigns.

    connectors: ConnectorsResource

    Connectors API — per-provider telephony webhook ingress.

    HLS API.

    Incidents API.

    participants: ParticipantsResource

    Participants API — a room-scoped view of live participants.

    recordings: RecordingsResource

    Recordings API (room / participant / track / composite / merge).

    resourcePool: ResourcePoolResource

    Resource pool API — pre-acquire composition units (Enterprise).

    Rooms (meetings) API.

    RTMP-out (livestream) API.

    Sessions & participants API.

    SIP / telephony API (gateways, routing rules, phone numbers, calls, webhooks).

    socketIngress: SocketIngressResource

    Socket ingest — single-use WS URL to stream media/data frames into a room.

    transcodings: TranscodingsResource

    Transcodings API.

    transcription: TranscriptionResource

    Transcription API — vsdk.transcription.realtime (live transcription).

    Webhooks API — verify inbound webhook signatures.

    WHEP egress — client-side pull URL + token builder.

    WHIP ingress — client-side publish URL + token builder.

    • Start building an access token (fluent). Defaults to a participant token (roles: ["rtc"]); call .forApi() for a management token.

      Returns AccessTokenBuilder

      const token = vsdk.accessToken().setParticipant("u1").grant(Grant.AllowJoin).forRoom(roomId).expiresIn("15m").toJwt();
      
    • Mint a fresh token from this client's credentials, overriding any default token options. (Prefer the VideoSDK access-token builder for participant tokens.)

      Parameters

      Returns string

    • Escape hatch: call any endpoint with a dynamic method. For a fixed verb, VideoSDK.api (vsdk.api.get/post/...) reads better.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<T>