SDKs

Learn how to use Retell’s Node.js and Python SDKs

While you can use our REST APIarrow-up-right 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.

arrow-up-rightAvailable SDKs & Requirements

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

npm i retell-sdk

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

arrow-up-rightSDK vs REST API Example

To illustrate the benefits of using our SDK, here’s a comparison of creating an agent using both methods:

arrow-up-rightUsing REST API (More Verbose)

arrow-up-rightUsing SDK (More Concise)

arrow-up-rightBest Practices

  1. Error Handling: Always wrap SDK calls in try-catch blocks

  2. Type Safety: Take advantage of TypeScript types in the Node.js SDK

  3. API Reference: Refer to our API documentationarrow-up-right for all available parameters

arrow-up-rightAdditional Resources

Find more SDK examples in our test suites to learn more about how to use the SDK:

Last updated