SDKs
Last updated
Last updated
Learn how to use Retell’s Node.js and Python SDKs
While you can use our for most operations, we recommend using our SDKs to speed up development and reduce code complexity. Our SDKs provide typed methods and a more structured approach to integrating with Retell.
Node.js TypeScript SDK
Requires Node.js version 18.10.0 or higher
Python SDK
Requires Python 3.x
1
Get Your API Key
Navigate to the “API Keys” tab in your dashboard to obtain your API key.
2
Install the SDK
Choose your preferred language and install the SDK:
Node ClientPython Client
3
Initialize the Client
Create a new client instance using your API key:
Node ClientPython Client
4
Make API Calls
Here’s an example of making a phone call using the SDK:
Node ClientPython Client
To illustrate the benefits of using our SDK, here’s a comparison of creating an agent using both methods:
Error Handling: Always wrap SDK calls in try-catch blocks
Type Safety: Take advantage of TypeScript types in the Node.js SDK
Find more SDK examples in our test suites to learn more about how to use the SDK:
Using REST API (More Verbose)
Using SDK (More Concise)
API Reference: Refer to our for all available parameters