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.
Node.js TypeScript SDK
Python SDK
Navigate to the “API Keys” tab in your dashboard to obtain your API key
Choose your preferred language and install the SDK:
npm i retell-sdk
pip install retell-sdk
Create a new client instance using your API key:
from retell import Retell retell_client = Retell( api_key=“YOUR_API_KEY” )
Here’s an example of making a phone call using the SDK:
try:
response = await retell_client.call.create_phone_call(
from_number="+14157774444",
to_number="+12137774445"
)
print(f"Call initiated: {response}")
except Exception as e:
print(f"Error making call: {e}")