DocumentationAPI ReferenceReact SDKRelease Notes
ScaleAI

Getting Started

OverviewInstallationQuick Start

Core

Provider & Setup

Hooks

AgentsOutbound CallsCall HistoryPhone NumbersIntegration CredentialsWebhooksKnowledge BasesFunction ToolsFunction Logs

Realtime

Realtime

UI

Components

Reference

TypesUtilities
Go to platform

Overview

Build on ScaleAI with the @scalereal/sr-voice-engine-react-sdk package — typed data hooks, realtime hooks, and drop-in UI components.

The React SDK (@scalereal/sr-voice-engine-react-sdk) is the client-side library for building applications on the ScaleAI calling-agent backend. It ships typed data hooks, realtime (WebSocket / SSE) hooks, and drop-in UI components — all driven by a single provider.

Install with pnpm add @scalereal/sr-voice-engine-react-sdk after authenticating to AWS CodeArtifact. Full registry setup is in Installation.

Start here

Installation

Configure AWS CodeArtifact and install the React SDK in your app.

Quickstart

Wire CallingAgentProvider in Vite or a Next.js client component.

Provider & Setup

projectId, secretKey, QueryClient, and CallingAgentError codes.

Components

Drop-in UI for call history, details, audio playback, and export.

Package entry points

Pick the subpath that matches what you need — root for the provider and shared helpers, or a narrower import for hooks, components, and types.

@scalereal/sr-voice-engine-react-sdkCore — provider, errors, config, types, and helpers (no styles)
@scalereal/sr-voice-engine-react-sdk/hooksHeadless hooks and query keys — no stylesheet, no audio player
@scalereal/sr-voice-engine-react-sdk/uiStyled components — pair with the /css import
@scalereal/sr-voice-engine-react-sdk/typesType-only domain models — zero runtime code
@scalereal/sr-voice-engine-react-sdk/cssThe compiled stylesheet

Explore the SDK

Hooks, realtime, and UI are grouped below. Open any card for the reference page.

AgentsCRUD, versions, and publishingOutbound CallsTelephony, SIP, and recallCall HistoryList, details, and recording URLsPhone NumbersCRUD, filters, and provider syncIntegration CredentialsProvider keys and account settingsWebhooksSubscriptions and delivery logsBatchesCampaign list and CSV uploadKnowledge BasesCrawl, upload, and discoveryFunction ToolsTool list, detail, and updatesFunction LogsPaginated tool-run historyRealtimeLive transcripts and post-call SSEComponentsDrop-in call history and audio UIProvider & SetupCallingAgentProvider and errors

Installation

Install the ScaleAI React SDK from AWS CodeArtifact and configure your package manager.