https://retellai.com/?utm_source=discord&utm_medium=seo logo
where do i find web sdk credentials/ api specs to ...
# ❓・ai-evy-support
a
@AI Evy where do i find web sdk credentials/ api specs to deploy an agent via api in a web app
a
Thanks for tagging me @adamsardo. I'll look through relevant sources and get back to you shortly.
### Answer To deploy an agent via API in a web app, you'll need your Retell API Key and follow these steps: ## Get Your API Key Navigate to the "API Keys" tab in your dashboard to obtain your API key [(1) ]() . ## Web SDK Setup For the web SDK, you'll need to: 1. Install the Web SDK [(2) ]() :
Copy code
javascript
npm install retell-client-js-sdk
2. Set up the SDK class :
Copy code
javascript
import { RetellWebClient } from "retell-client-js-sdk";
const retellWebClient = new RetellWebClient() ;
## Server-Side API Setup For server-side operations, install the main SDK [(1) ]() :
Copy code
javascript
npm i retell-sdk
Initialize the client with your API key :
Copy code
javascript
import Retell from 'retell-sdk';
const retellClient = new Retell({
 apiKey: "YOUR_API_KEY",
}) ;
## Creating Web Calls Your client code should call your server endpoint which internally calls the create web call API to get the access token for the call [(2) ]() . The endpoint requires using your Retell API Key, which is why you need to call it from the server instead of client to protect the key from exposing . ## API References The key API endpoints you'll need are: - **Create Web Call**: [Create Web Call]() [(3) ]() - **Get Agent**: [Get Agent]() [(4) ]() - **Publish Agent**: [Publish Agent]() [(5) ]() The complete web call integration guide is available at [Connect to web call]() [(2) ]() .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy is there a nextjs starter app or hosted app or page where i can interact with my agent that’s not the testing panel in the agent setup / configuration?
a
Thanks for the follow-up, @adamsardo. I'll get back to you soon.
### Answer Based on the available sources, I can see that Retell AI supports Next.js integration [(1) ]() , and there are demo repositories available for backend integration [(2) ]() [(3) ]() . The documentation mentions example repositories for backend integration: - Node.js Express.js Demo: - Python FastAPI Demo: However, the sources note that "The example repos are currently a bit outdated" . For Next.js specifically, the integration page [(1) ]() mentions that you can "Connect next.js through custom API integrations" but doesn't provide a direct starter app or hosted testing page. I don't have information about a specific Next.js starter app or hosted testing interface in the available sources. For the most up-to-date starter applications and examples, I'd recommend: Check out these potentially useful sources: [Connect AI call agent to next.js]() Would you like me to try to provide a general answer about creating a basic Next.js integration based on my knowledge, or would you prefer to explore the GitHub repositories mentioned above?
​ To learn more, see the sources I considered: [[1] Connect AI call agent to next.js](https://www.retellai.com/integrations/next-js) [[2] Integrate LLM](https://docs.retellai.com/integrate-llm/integrate-llm) [[3] Setup WebSocket Server](https://docs.retellai.com/integrate-llm/setup-websocket-server) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.