Skip to main content
The DialNexa API is reachable from any Python service using the standard requests library. There is no Python-specific SDK package yet, the recommended pattern is a thin wrapper module in your own codebase that centralizes the base URL, authentication header, and error handling. The example below mirrors the operations published in /api-reference/openapi.json and is a good starting point for production worker code.

When to use this

  • Backend workers that trigger outbound calls in response to CRM events, scheduled jobs, or upstream webhooks.
  • Data pipelines that fetch DialNexa call logs and push them into a data warehouse.
  • Internal tooling that automates campaign and workflow management for operations teams.
For browser or mobile voice experiences, use the current Web Calls path. Do not expose a DialNexa API key in browser or mobile code. The React and React Native SDK pages describe unreleased plans only.

Trigger A DialNexa Outbound Call From Python

Example usage:
  • Centralize the client. Wrap the snippet above in a single module (for example dialnexa_client.py) and import it from every job. Avoid scattering requests.post calls and headers across the codebase.
  • Use environment variables for the API key. Never hard-code keys. See Authentication for the format.
  • Set explicit timeouts. A 30 second timeout works for POST /v1/calls because the response is small and returns as soon as DialNexa accepts the call.
  • Retry on transient failures only. Retry HTTP 502/503/504 and connection errors with exponential backoff. Do not retry 4xx responses, those indicate a payload that needs to be fixed, not a transient outage. See Errors.
  • Handle webhook deliveries separately. For inbound events from DialNexa, build a dedicated handler that verifies the signing secret. See Webhook secrets.