SDK Overview

Ravi publishes first-party SDKs for TypeScript and Python. Use an SDK when you want typed resource clients, consistent error handling, retry behavior, and webhook signature helpers without hand-writing HTTP requests.

Packages

LanguageInstall packageImport packageRepo version
TypeScript@ravi-hq/sdk@ravi-hq/sdk0.2.0
Pythonravi-sdkravi0.2.0

Install:

npm install @ravi-hq/sdk
pip install ravi-sdk

Authentication

Both SDKs send the API key as a bearer token on every request. The key is an auth fence only — it defines what you’re allowed to touch, but it never selects the identity. The caller picks an identity and calls channels on it, and every per-identity request carries ?identity=<uuid> automatically.

Key familyUse for
ravi_id_...Identity-scoped agent runtime work
ravi_mgmt_...Account-level management work

Read the key from RAVI_API_KEY in server-side code. Create keys from the dashboard, ravi auth login, or the key-management API.

Resource Map

Account-level resources hang off the client. Everything per-identity is reached through an Identity object returned by ravi.identities, where identity.email and identity.phone are channel objects (with .address / .number), not strings.

Account-level (ravi.*)

AreaTypeScriptPython
Identitiesravi.identitiesravi.identities
Fenced identityravi.me()ravi.me
Eventsravi.eventsravi.events
Domainsravi.domainsravi.domains
Webhooksravi.webhooksravi.webhooks
API keysravi.apiKeysravi.api_keys

Per-identity (identity.*)

AreaTypeScriptPython
Email channelidentity.emailidentity.email
Phone channelidentity.phoneidentity.phone
Contactsidentity.contactsidentity.contacts
Passwordsidentity.vault.passwordsidentity.vault.passwords
Secretsidentity.vault.secretsidentity.vault.secrets
Eventsidentity.eventsidentity.events

The email channel exposes .address, inbox/threads/get/send/waitFor and returns EmailMessage objects (.reply/.replyAll/.forward/.markRead). The phone channel exposes .number, inbox/conversations/send/call/ calls/waitFor and returns SmsMessage objects (.reply/.markRead).

Next Steps