OdyDocs

SDKs

Official zero-dependency TypeScript and Python clients for the Ody REST API, with auto-pagination, typed errors, idempotency and webhook verification.

Availability

Both SDKs are published: npm install @ody-co/sdk (npm) and pip install ody-sdk (PyPI), both at v0.8.0. Prefer plain HTTP? Every example in these docs has a cURL tab, and you can generate a client in any language from the OpenAPI spec.

TypeScriptPython
Package@ody-co/sdkody-sdk (imported as ody)
Version0.8.00.8.0
RuntimeNode.js 18+, Deno, Bun, browsers (any fetch)Python 3.9+
DependenciesNoneNone (standard library only)
Webhook verificationverifyWebhookSignature() (server-side)verify_webhook_signature()
Webhook parsingparseWebhookEvent() → typed WebhookEventparse_webhook_event() → envelope dict
Event catalogWEBHOOK_EVENT_TYPES, WebhookEventType, a data type per eventWEBHOOK_EVENT_TYPES

#What they give you over raw HTTP

FeatureTypeScriptPython
Auto-paginationfor await (const c of ody.contacts.listAll())for c in client.contacts.list_all():
Typed errorsOdyError with code, status, requestId, retryAfterOdyError with code, status, request_id, retry_after
IdempotencyidempotencyKey option on messages.send, numbers.buyidempotency_key=
TypesFull TypeScript types for every resourceDocstrings and type hints; responses are dicts
Webhook signaturesConstant-time HMAC, 5-minute replay windowSame
Webhook eventsparseWebhookEvent() verifies + parses; event.data typed per event.typeparse_webhook_event() verifies + parses

The SDKs don't retry automatically. Wrap calls in your own backoff using retryAfter / retry_after (see Rate limits).

#Resource map

Both SDKs mirror the REST API one-to-one:

NamespaceTypeScript methodsREST
contactslist, listAll, create, get, update, deleteContacts
conversationslist, listAll, get, setStatus, setAiTexting, aiTextingRuns — Business AI Texting hand-offConversations
messagessend, searchMessages
callslist, placeCalls
numberslist, searchAvailable, buy, connectAgent, disconnectAgent, setTextingAgent — link a line's texts to an agentNumbers
messagingstatus, register, refresh, verifyOtp, resendOtpMessaging
agentget, update, publish — the primary agentAgent
agentslist, create, get, update, publish, attach, delete, texting, setTexting, setRecording — several agents, AI texting and AI call recordingAgent · AI Texting
knowledgeget, search, listArticles, getArticle, createArticle, updateArticle, deleteArticle, importWebsite, refreshArticle, createFolder, updateFolder, deleteFolderKnowledge
linkTrackingget, update — tracked short links in outbound textsLink tracking
hostedMediaget, update — every photo, video and file as a branded link.ody.co/m/… page (on by default; no per-send flag)Hosted files
webhookslist, create, get, update, delete, rotate, test, deliveries, eventTypesWebhook endpoints

Python uses the same names in snake_case (list_all, set_status, search_available, connect_agent, verify_otp, event_types, list_articles, import_website, link_tracking.update(show_in_thread=…), hosted_media.update(website_url=…), messages.send(send_as_link=True), …).

  • TypeScript SDK — Setup, usage, errors, webhook verification.
  • Python SDK — Setup, usage, errors, webhook verification.
Last updated Sat Nov 07 2026 00:00:00 GMT+0000 (Coordinated Universal Time)Something wrong on this page? Tell us