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.
Use the `dino-pong` skill to plan a Drip for <application workflow>.
Define contact identity, placeholders, private integration context, and callback ownership.
Verify my role and the exact target account.
Explain when calls can begin and how failed callback delivery recovers.
Use Lite VAD unless I explicitly request another mode.
List the remaining process settings and infrastructure decisions I must make.
Do not create a process or place a call.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.
| Owner | Responsibility |
|---|---|
| Your application | Choose stable contact IDs, submit contacts, expose an HTTPS callback endpoint, verify signatures, persist outcomes idempotently, and reconcile failed deliveries. |
| Dinodial | Validate strict per-process contact IDs, schedule calls, determine terminal outcomes, sign callbacks, and retain delivery failures for reconciliation. |
| Dino CLI and skill | Configure 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:
| Identifier | Owned by | Question it answers |
|---|---|---|
process_id | Dinodial | Which running Drip process owns this contact? |
unique_id | You | Which record in your system is this? |
dd_id | Dinodial | Which 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.
| Status | Meaning |
|---|---|
answered | The receiver answered and the call concluded, including when the receiver went silent. |
no_answer | The call rang and nobody picked up. |
busy | The destination line was busy. |
failure_t | A transport or carrier-side failure, such as a connection timeout or a rejected dial. |
failure_p | A Dinodial platform, partner, infrastructure, or control-plane failure. |
failed | Any other failure. reason_code names the cause when Dinodial knows it. |
dnd_blocked | The 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:
| Cause | status | reason_code |
|---|---|---|
| The carrier rejects the dial | failure_t | transport_dial_rejected, or transport_auth_failed for rejected credentials |
| The carrier refuses the number | failed | transport_number_refused |
| The DND lookup fails | failure_t | transport_dnd_check_failed |
| The Vox server is unreachable | failed | runtime_unavailable |
| The agent cannot start with the call's settings, for example its model is not on the call's AI partner | failed | agent_refused |
| A required resource was deactivated | failed | The resource kind and _deactivated, such as transport_did_deactivated |
| The owner lost access to a live resource | failed | The resource kind and _not_in_pool, such as runtime_not_in_pool |
| The wallet is halted | failed | wallet_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:
- Dinodial sends a signed JSON
POSTto the contact's callback URL. - Your endpoint verifies the signature on the raw body.
- Your application records the outcome using
dd_idas the deduplication key. - Your endpoint returns a
2xxonly 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:
- Read unacknowledged failures with
GET /failed-callbacks. - If
failuresis empty, the process is currently caught up. - For each entry, apply its embedded
payloadusing the same validation anddd_iddeduplication used by the normal webhook handler. - Commit those outcomes to your database before acknowledging anything.
- Send only the successfully committed
failure_idvalues toPOST /failed-callbacks/ack. - Repeat until a read returns an empty
failuresarray.
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:
X-Dinodial-Process-Id: <process-uuid>
X-Dinodial-Signature: t=<unix-seconds>,v1=<lowercase-hex-hmac>The signed input is:
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:
X-Api-Key: <account-api-key>
Content-Type: application/jsonDinodial 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 path | Request body | Success response |
|---|---|---|
POST /api/drip-processes/{process_id}/contacts | Array of 1 to 500 contact objects | 200 with one accepted-contact object per input, in the same order |
GET /api/drip-processes/{process_id}/failed-callbacks | Optional query: includeAcknowledged=true | 200 with { "failures": [...] } |
POST /api/drip-processes/{process_id}/failed-callbacks/ack | { "failure_ids": [...] }, containing 1 to 100 IDs | 200 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:
[
{
"unique_id": "crm-contact-000123",
"phone_number": "(202) 555-0123",
"customer_callback_url": "https://callbacks.example.test/dinodial/outcomes",
"placeholders": {
"first_name": "Taylor"
}
}
]| Field | Meaning | Requirement |
|---|---|---|
unique_id | Your process-scoped record key | Required, trimmed, non-empty, at most 128 characters, and not previously used in this process or repeated within this request |
phone_number | Destination Dinodial should call | Required 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_url | Endpoint that receives this contact's terminal outcome | Required URL; use HTTPS |
placeholders | Per-contact values available to the agent during the call | Optional 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.
[
{
"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
{
"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>"
}| Field | Meaning |
|---|---|
process_id | Drip process that owns the contact |
unique_id | Your original process-scoped correlation key |
dd_id | Contact identity and callback deduplication key |
phone_number | Destination associated with the outcome, in full form with + and the country code |
reason_code | Optional failure reason, such as transport_number_refused |
status | Terminal outcome and reason |
post_tools | Optional agent-emitted structured results from the terminal flow step |
lens_url | Optional 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
{
"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"
}
}
]
}| Field | Meaning |
|---|---|
failure_id | Reconciliation-queue identity; acknowledge this after committing the payload |
dd_id | Contact identity; use this to deduplicate the outcome |
call_id | Diagnostic call reference; do not use it as the reconciliation key |
http_status | Non-2xx status returned by your callback endpoint |
error | Network error when no HTTP response was received |
created_at | Time Dinodial recorded the failed delivery |
payload | Exact 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:
{
"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:
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 --helpUse 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.