Skip to content
v2.6.0 Updated Verified

Drip integration ​

Preview contract

This site describes the current candidate contract. Confirm rollout status with Dinodial before using it against a production campaign.

Drip is the boundary between your contact workflow and Dinodial's calling system. Your application submits contacts to a running process. Dinodial schedules and places the calls, then reports one terminal outcome to the callback URL supplied with each contact.

This guide explains the contract and the decisions an integration must make. Use the Dino CLI or the Dinodial skill for setup, manual testing, and recovery operations; use the HTTP API from your application in production.

The whole journey ​

One eligible contact crosses the integration boundary twice: first as a request to call, then as one terminal outcome coming back.

The ownership model ​

The integration is reliable when each side owns a small, explicit responsibility.

OwnerResponsibility
Your applicationChoose stable contact IDs, submit contacts, expose an HTTPS callback endpoint, verify signatures, persist outcomes idempotently, and reconcile failed deliveries.
DinodialValidate strict per-process contact IDs, schedule calls, determine terminal outcomes, sign callbacks, and retain delivery failures for reconciliation.
Dino CLI and skillConfigure workspaces, validate manual input, exercise the API safely, and perform explicit recovery actions.

The CLI is the preferred interface for human operations. The HTTP contract exists for application-to-application integration; the documentation does not duplicate every CLI flag or confirmation flow.

The identity model ​

Three identifiers answer different questions:

IdentifierOwned byQuestion it answers
process_idDinodialWhich running Drip process owns this contact?
unique_idYouWhich record in your system is this?
dd_idDinodialWhich exact contact produced this callback?

unique_id is scoped to one process. Any value already present in that process rejects the entire insertion request with 409 Conflict, even when the submitted contact data is identical. The same value may be used in a different process.

Persist dd_id when the contact is accepted. Use it as the callback deduplication key. Keep unique_id as the correlation key into your own system.

There is no event_id. A callback also has no separate termination_reason; status is the terminal reason.

The outcome model ​

Every callback status is terminal. Your application should not infer additional intermediate states from callback timing.

StatusMeaning
answeredThe receiver answered and the call concluded, including when the receiver went silent.
no_answerThe call rang and nobody picked up.
busyThe destination line was busy.
failure_tA transport or carrier-side failure, such as a connection timeout or a rejected dial.
failure_pA Dinodial platform, partner, infrastructure, or control-plane failure.
failedAny other failure. reason_code names the cause when Dinodial knows it.
dnd_blockedThe contact was blocked by the DND check before a call was placed.

A Drip never pauses by itself. A carrier refusal, a failed DND lookup, an unreachable Vox server, an agent that cannot start with the call's settings, a deactivated DID or credential, or a halted wallet ends that contact with a callback, and the Drip keeps accepting and dialing contacts. reason_code names the cause:

Causestatusreason_code
The carrier rejects the dialfailure_ttransport_dial_rejected, or transport_auth_failed for rejected credentials
The carrier refuses the numberfailedtransport_number_refused
The DND lookup failsfailure_ttransport_dnd_check_failed
The Vox server is unreachablefailedruntime_unavailable
The agent cannot start with the call's settings, for example its model is not on the call's AI partnerfailedagent_refused
A required resource was deactivatedfailedThe resource kind and _deactivated, such as transport_did_deactivated
The owner lost access to a live resourcefailedThe resource kind and _not_in_pool, such as runtime_not_in_pool
The wallet is haltedfailedwallet_blocked

A person can still pause the Drip with PUT /api/drip-processes/{process_id}/lifecycle and { "phase": "paused" }.

Only an answered call can include a Lens review URL. Post-call tool output is included when the agent emitted it; otherwise the field is absent.

A terminal outcome without a call ​

DND is a pre-dial gate. A blocked contact skips the calling runtime but still completes through the same customer outcome channel. The Exotel DND lookup runs only for +91 numbers; other numbers skip it.

Delivery and reconciliation ​

Callback handling is deliberately idempotent:

  1. Dinodial sends a signed JSON POST to the contact's callback URL.
  2. Your endpoint verifies the signature on the raw body.
  3. Your application records the outcome using dd_id as the deduplication key.
  4. Your endpoint returns a 2xx only after that record is durable.

Dinodial makes one HTTP attempt for a callback duty. A recovered duty may be observed more than once, so a callback endpoint must tolerate duplicates even when the normal case is one delivery.

A network failure or non-2xx response is retained for explicit reconciliation. Reconciliation exists because an HTTP sender cannot know that your application durably stored an outcome merely because it attempted delivery. Dinodial therefore preserves the failed attempt until your application explicitly confirms that it has applied the payload.

Reading failures and acknowledging them are separate operations by design. A failed read, worker crash, or database rollback cannot remove an outcome before your application is ready.

The durability boundary ​

The replay isolates the ordering rule: read, save durably, then acknowledge.

Reconciliation procedure ​

Run this procedure independently for each Drip process:

  1. Read unacknowledged failures with GET /failed-callbacks.
  2. If failures is empty, the process is currently caught up.
  3. For each entry, apply its embedded payload using the same validation and dd_id deduplication used by the normal webhook handler.
  4. Commit those outcomes to your database before acknowledging anything.
  5. Send only the successfully committed failure_id values to POST /failed-callbacks/ack.
  6. Repeat until a read returns an empty failures array.

Each read returns at most 100 entries, oldest first. Reads are non-destructive, so the same entries remain visible until acknowledged. Acknowledgement is idempotent: retrying IDs that were already acknowledged is a successful no-op.

Both reconciliation operations are metered at the minimum catalog rate of 100,000 CU per record unit. A successful read uses one unit for each returned failure, with a one-unit minimum when the result is empty. A successful acknowledgement uses one unit for each submitted failure_id; idempotent retries carry the same submitted-ID count.

The embedded payload arrives through the authenticated Dinodial API; it is not a second webhook request and has no callback signature header. Treat it as the outcome Dinodial attempted to deliver, while retaining the same schema validation and idempotent persistence rules.

Never acknowledge an entry before its outcome is committed. Otherwise a crash between acknowledgement and persistence would permanently discard the only recoverable copy.

Signature reasoning ​

The callback secret and the API key have different roles:

  • The API key authenticates requests your application sends to Dinodial.
  • The per-process callback secret authenticates callbacks Dinodial sends to you.

Dinodial sends:

http
X-Dinodial-Process-Id: <process-uuid>
X-Dinodial-Signature: t=<unix-seconds>,v1=<lowercase-hex-hmac>

The signed input is:

text
HMAC-SHA256(callback_secret, timestamp + "." + raw_request_body)

Use the process-ID header only to select the candidate process secret. Verify the exact raw bytes before parsing JSON, compare the HMAC in constant time, reject future timestamps, and enforce a short freshness window. After verification, require the signed body's process_id to equal the header value. The wire rule above remains the source of truth.

Never expose the callback secret in browser code, logs, examples, or support messages.

Protocol reference ​

Use apiUrl from the release manifest selected during setup as the API base URL.

API requests use:

http
X-Api-Key: <account-api-key>
Content-Type: application/json

Dinodial provisions the running process and transfers its process_id and callback secret securely. Each Drip calls one country, set at creation with phoneCountry (CLI --phone-country), an ISO code such as IN or BH. Use one process for each country.

Endpoints ​

Method and pathRequest bodySuccess response
POST /api/drip-processes/{process_id}/contactsArray of 1 to 500 contact objects200 with one accepted-contact object per input, in the same order
GET /api/drip-processes/{process_id}/failed-callbacksOptional query: includeAcknowledged=true200 with { "failures": [...] }
POST /api/drip-processes/{process_id}/failed-callbacks/ack{ "failure_ids": [...] }, containing 1 to 100 IDs200 OK with an empty body
PUT /api/drip-processes/{process_id}/lifecycle{ "phase": "paused" }, "running", or "completed"200 with the updated process

Contact shape ​

The contact endpoint accepts a JSON array. This example is for a US process:

json
[
  {
    "unique_id": "crm-contact-000123",
    "phone_number": "(202) 555-0123",
    "customer_callback_url": "https://callbacks.example.test/dinodial/outcomes",
    "placeholders": {
      "first_name": "Taylor"
    }
  }
]
FieldMeaningRequirement
unique_idYour process-scoped record keyRequired, trimmed, non-empty, at most 128 characters, and not previously used in this process or repeated within this request
phone_numberDestination Dinodial should callRequired national number of the process country, without the country code. Spaces, dashes, brackets, and the country's own leading 0 are allowed. A +, a 00 prefix, or the country code in the digits (919876543210 in an IN process) is rejected
customer_callback_urlEndpoint that receives this contact's terminal outcomeRequired URL; use HTTPS
placeholdersPer-contact values available to the agent during the callOptional object keyed by the agent's exact declared placeholder names

The body is an array because one request may submit multiple independent contacts. Each contact can use a different callback URL and placeholder set.

Each response object contains unique_id and dd_id, in request order.

json
[
  {
    "unique_id": "crm-contact-000123",
    "dd_id": "0198d6ca-65f3-7c11-9b9a-7c3a326e041a"
  }
]

unique_id is echoed so you can match responses without depending only on array position. Insertion is atomic: one missing, duplicate, conflicting, or otherwise invalid contact rejects the full array and inserts nothing. A bad number returns 400 with {"code": "phone_invalid", "index": n}, where n is the contact's index; the next request is accepted. Store the returned dd_id; it is the contact identity used in callbacks and reconciliation.

Callback shape ​

json
{
  "process_id": "0198d6c4-1d83-73fe-b83b-14ebc6172169",
  "unique_id": "crm-contact-000123",
  "dd_id": "0198d6ca-65f3-7c11-9b9a-7c3a326e041a",
  "phone_number": "+12025550123",
  "status": "answered",
  "post_tools": [
    {
      "name": "call_summary",
      "args": {
        "summary": "The customer requested a follow-up."
      },
      "flow": {
        "stage": "follow_up",
        "outcome": "completed",
        "post": "summary"
      }
    }
  ],
  "lens_url": "https://app.dinodial.ai/lens/open/<link-token>"
}
FieldMeaning
process_idDrip process that owns the contact
unique_idYour original process-scoped correlation key
dd_idContact identity and callback deduplication key
phone_numberDestination associated with the outcome, in full form with + and the country code
reason_codeOptional failure reason, such as transport_number_refused
statusTerminal outcome and reason
post_toolsOptional agent-emitted structured results from the terminal flow step
lens_urlOptional link to the call page in Lens; only for answered calls. It opens only after sign-in to the owning account.

Each post_tools entry contains the tool name, its JSON args, and a flow context. flow.stage identifies the agent stage; optional flow.outcome and flow.post identify the terminal branch and post step that emitted it.

post_tools is omitted when empty. lens_url is present only for answered calls. The link does not expire. To give the call to a person without an account, open the call in Lens and use Share.

Failed-delivery response ​

json
{
  "failures": [
    {
      "failure_id": "0198d6df-4fba-7ab7-a270-b986b06a4d39",
      "dd_id": "0198d6ca-65f3-7c11-9b9a-7c3a326e041a",
      "call_id": "0198d6d4-2573-7c58-a6c6-6d0837284c39",
      "http_status": 503,
      "created_at": "2026-08-08T10:20:00Z",
      "payload": {
        "process_id": "0198d6c4-1d83-73fe-b83b-14ebc6172169",
        "unique_id": "crm-contact-000123",
        "dd_id": "0198d6ca-65f3-7c11-9b9a-7c3a326e041a",
        "phone_number": "+12025550123",
        "status": "no_answer"
      }
    }
  ]
}
FieldMeaning
failure_idReconciliation-queue identity; acknowledge this after committing the payload
dd_idContact identity; use this to deduplicate the outcome
call_idDiagnostic call reference; do not use it as the reconciliation key
http_statusNon-2xx status returned by your callback endpoint
errorNetwork error when no HTTP response was received
created_atTime Dinodial recorded the failed delivery
payloadExact callback JSON Dinodial attempted to deliver

http_status and error are mutually exclusive: Dinodial either received an HTTP response or encountered a network failure before receiving one.

Pass includeAcknowledged=true to include recent acknowledgements after pending failures within the same 100-entry limit. An acknowledged entry includes acknowledged_by with the person and acting account who first acknowledged it. A pending failure has no acknowledgment actor. Earlier acknowledgments with unknown actors name System. Use the default list for reconciliation. Only pending rows count toward the number of metered entries.

Acknowledgement payload ​

After the corresponding outcomes are committed, send their failure IDs:

json
{
  "failure_ids": [
    "0198d6df-4fba-7ab7-a270-b986b06a4d39"
  ]
}

Success returns 200 OK with an empty body. Repeating the same request also returns 200 OK; IDs already acknowledged, unknown IDs, and IDs belonging to another process are ignored. Confirm that reconciliation is caught up with the next GET /failed-callbacks response rather than an acknowledgement count.

Use the CLI for manual operations ​

The CLI owns workspace authentication, typed validation, file loading, confirmations, and structured output. Discover the current command contract from the installed binary:

sh
dino process place-call --help
dino process add-drip-contacts --help
dino process failed-callbacks --help
dino process ack-failed-callbacks --help
dino process close-drip --help

Use place-call for one manual contact and add-drip-contacts for a validated JSON file. place-call --phone takes the national number, like phone_number. Use the failed-callback commands as a pair: read first, apply outcomes durably, then acknowledge only the applied failure IDs.

Integrate outcome callbacks ​

The Drip callback integration guide defines receiver requirements, secret handling, process creation, rehearsal, verification, failed-delivery recovery, and production operations.