For a browser conversation UI, use the Akapulu Labs Web SDK instead of calling connect and updates from frontend code. Put the API key on your server, have the browser call your connect route, and authenticate users on that route before starting a call. The SDK’s client and server libraries implement that flow, session state, realtime media wiring, and conversation detail and recording retrieval.Scripted clips have no Web SDK. Call the clip REST endpoints, or start from the Python example.
Authentication
All Akapulu Labs API endpoints require a Bearer API key in theAuthorization header.
API Keys
To get started, create an account, sign in to Akapulu Labs, then create an API key and send it in theAuthorization header for every request.
Base URL
Example Request
Error responses
Conversation connect, updates, detail, recording, and system-message errors return JSON with:error: human-readable messageerror_code: stable string you can switch on
error_code.
The React SDK copies
error_code onto error.code when the session fails. Client-only codes such as UPDATES_TIMEOUT are not returned by the REST API.

