Why this exists
Without any rule, every connected partner receives every message and every partner can reply. In practice that is a mess: two bots answering the same customer, or one partner replying to a conversation the other was handling. Meta solved this with Conversation Routing: the business defines which partner handles each kind of conversation, and Meta delivers the message only to that partner.Concepts
What each partner can do
1. Find out the number’s situation
One call shows whether there are other partners and what D-API’s role is:YOUR_CONNECTION is the connection id or the session id (cloud-…).
exclusive: only D-API is on the account. Everything works as usual.shared_without_routing: there is another partner and no routing. Both receive every message and both can reply. Configure routing to avoid duplicate replies.routed: routing is active. What D-API does depends onrolesandisStandby.
customer_service (service),
ctwa (Click to WhatsApp ad), marketing, utility, calls. Contains
escalation if D-API is the escalation partner. Empty when D-API is primary
for nothing.true if the business granted D-API standby visibility (a copy of other
partners’ conversations).true if D-API can take over any conversation. Shortcut for roles
containing escalation.isCurrentApp: true marks D-API.2. Configure routing in Meta Business Suite
The configuration belongs to the business that owns the number and only exists in Meta’s interface. No partner (D-API included) can configure it via API.Accept the terms
Open conversation routing
Pick the primary for each entry point
Pick the escalation partner (optional)
Grant standby visibility (optional)
Save and check
GET /routing and confirm D-API’s
role is the expected one.3. Use cases
- D-API as fallback
- Split by entry point
- Bot and human
- Back to D-API only
GET /routing result: situation: "routed", roles: ["escalation"],
isStandby: true.Day to day:- The other partner receives and answers everything, as usual.
- D-API receives a copy of everything through the webhook, with
is_standby: true: customer messages and what the other partner sent (fromMe: true). The history in the dashboard is complete. - D-API flows, automations and AI agents do not run on these copies.
- D-API can send templates whenever it wants.
- Explicit: call
take. - Implicit: send a regular message through D-API. Meta transfers the conversation immediately, and the other partner is told it lost it.
is_standby), and flows and automations run again.To give the conversation back to the other partner, use
pass with targetRole: "customer_service", or
release to let the customer’s next message decide by
the configuration.4. Change a conversation’s owner
One route, three actions. Always for one conversation (one customer).take, pass or release.5551999999999@s.whatsapp.net) is accepted.pass. Which entry point receives it: customer_service, ctwa,
marketing, utility, escalation or ai_agent (Meta Business Agent, if
enabled on the account). Without it, pass goes to the escalation partner.Take over (take)
D-API takes the conversation from whoever owns it. Only works if D-API is the
escalation partner.
Hand over (pass)
D-API, as the owner, hands the conversation to another partner.
pass is rejected if the conversation is idle, if D-API is not the owner, if
the chosen entry point has no primary, or if the target already owns it.
Release (release)
D-API, as the owner, makes the conversation idle. The customer’s next
message is routed again by the business’s configuration. Releasing an idle
conversation does not fail.
release triggers no webhook for anyone: there is no new owner until the
customer writes again.Errors
5. Webhooks
- normalized mode
- meta_passthrough mode
Copies of other partners’ conversations: is_standby
Copies arrive on the same events as always, with one extra field:
is_standby: true. Regular messages do not have the field.type: "template" and the
text [Template name]: parameters in message. Interactive messages
arrive with type: "interactive" and their body text.Owner change: conversation.control_changed
Sent when a conversation changes owner involving D-API:type: "control_passed": another partner handed the conversation to D-API. D-API is now the owner (is_owner: true).type: "control_taken": the escalation partner took the conversation from D-API. D-API is no longer the owner (is_owner: false).
control_passed or control_taken.true: D-API became the conversation’s owner. false: it no longer is.customer_service, ctwa, marketing,
utility, escalation, ai_agent).control_passed).6. Sending in another partner’s conversation: error 131070
If D-API tries to send free-form text or media in a conversation it doesn’t own
(and it is not the escalation partner), Meta refuses. The send route responds:
message text is in Portuguese. Match on 131070 in the text to detect
this case.- Need to reach the customer now? Send a template.
- Is D-API the escalation partner? Take over with
take(or the send itself takes over, with no error). - Otherwise, ask the owning partner to
passthe conversation to D-API, or change the configuration in Meta Business Suite.
FAQ
Is D-API always in standby?
Is D-API always in standby?
GET /routing to see
the current role.Can both platforms be used at the same time?
Can both platforms be used at the same time?
How do I know if there is another partner on the number?
How do I know if there is another partner on the number?
GET /routing: otherAppsCount greater than zero and the list in
subscribedApps.Do D-API flows and automations run on standby copies?
Do D-API flows and automations run on standby copies?
is_standby: true go to the history and the webhook, but
do not trigger flows, automations or AI agents. They run again once D-API
owns the conversation.Do the other partner's messages show up in the D-API dashboard?
Do the other partner's messages show up in the D-API dashboard?
Do I pay for the other partner's messages?
Do I pay for the other partner's messages?
What about the Datacrazy integration?
What about the Datacrazy integration?
How long does a conversation keep the same owner?
How long does a conversation keep the same owner?
Does connecting D-API to a number that already uses another partner change anything for it?
Does connecting D-API to a number that already uses another partner change anything for it?
