This repository was archived by the owner on Feb 14, 2026. It is now read-only.
feat: Support custom ElevenLabs credentials in voice token endpoint#16
Open
rrnewton wants to merge 2 commits intoslopus:mainfrom
Open
feat: Support custom ElevenLabs credentials in voice token endpoint#16rrnewton wants to merge 2 commits intoslopus:mainfrom
rrnewton wants to merge 2 commits intoslopus:mainfrom
Conversation
- Parse ElevenLabs API error responses to surface actual error messages - Helps debug issues like missing API key permissions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Accept optional customAgentId and customApiKey in request body - Use user-provided credentials when available, fallback to server env vars - Enables per-user ElevenLabs agent configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Author
|
(Update: ran some limited PR tests via the happy-devbox repo that simulates a monorepo linking the commits in these PRs together.) E2E Tests This PR includes working E2E tests using Playwright:
CI validation runs ./scripts/validate.sh which includes:
Green CI Run: https://github.com/rrnewton/happy-devbox/actions/runs/19894554194/job/57021496616 |
bra1nDump
approved these changes
Dec 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the
/v1/voice/tokenendpoint to accept optional custom ElevenLabs credentials from the client, enabling bring-your-own voice agent support.Changes
customAgentIdandcustomApiKeyparameters to the voice token requestELEVENLABS_API_KEYandELEVENLABS_AGENT_IDenv vars)API Changes
POST /v1/voice/token
Request body (all fields optional):
{ "revenueCatPublicKey": "string", "customAgentId": "string", "customApiKey": "string" }When customAgentId and customApiKey are both provided, the server uses these credentials to fetch the conversation token from ElevenLabs. Otherwise, it uses the server's configured defaults.
Backward Compatibility
Fully backward compatible - existing clients that don't send custom credentials continue to work with server defaults.
Test plan
Note: The client and server PRs should be merged together or in sequence (server first, then client) since the client changes depend on the server supporting custom credentials.
Client PR: slopus/happy#258