SDKs overview

View as Markdown

Dial ships SDKs so you can call the API in-process instead of shelling out. All of them wrap the same REST API and authenticate with your sk_live_ key.

SDKPackageUse it for
Node@getdial/sdkTypeScript / JavaScript apps and agents
Pythondial-sdkAsync Python apps and agents
LangChaindial-langchainGiving a LangChain agent Dial tools
Vercel AI SDK@getdial/ai-sdkGiving any AI SDK model Dial tools
CrewAIdial-crewaiGiving a CrewAI crew Dial tools (SMS/OTP/voice)
AutoGendial-autogenGiving a Microsoft AutoGen agent Dial tools
Microsoft Agent Frameworkdial-agentframeworkGiving a Microsoft Agent Framework agent Dial tools

The common method set

The Node and Python clients expose the same operations:

MethodDoes
listNumbers / list_numbersList your phone numbers
sendMessage / send_messageSend an SMS
makeCall / make_callPlace an AI voice call
listMessages / list_messagesList recent messages
listCalls / list_callsList recent calls
newEventsConnection / new_events_connectionOpen a live event stream

Construct a client

1import { DialClient } from "@getdial/sdk";
2const dial = new DialClient({ apiKey: process.env.DIAL_API_KEY! });

Both accept an optional base URL (baseUrl / base_url) to target a non-default deployment. Pick your language to continue.