SDKs
Learn how to use Retell’s Node.js and Python SDKs
While you can use our REST API 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.
Available SDKs & Requirements
-
Node.js TypeScript SDK
- NPM Package
- Requires Node.js version 18.10.0 or higher
-
Python SDK
- PyPI Package
- Requires Python 3.x
Get Your API Key
Navigate to the “API Keys” tab in your dashboard to obtain your API key.
Install the SDK
Choose your preferred language and install the SDK:
Initialize the Client
Create a new client instance using your API key:
Make API Calls
Here’s an example of making a phone call using the SDK:
SDK vs REST API Example
To illustrate the benefits of using our SDK, here’s a comparison of creating an agent using both methods:
Using REST API (More Verbose)
Using SDK (More Concise)
Best Practices
- Error Handling: Always wrap SDK calls in try-catch blocks
- Type Safety: Take advantage of TypeScript types in the Node.js SDK
- API Reference: Refer to our API documentation for all available parameters
Additional Resources
Find more SDK examples in our test suites to learn more about how to use the SDK:
Was this page helpful?