Start Conversation
const url = 'https://api.nuntius.chat/public/v1/conversations/start';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"channelId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","phone":"example","templateName":"example","templateLanguage":"example","variables":[],"leadId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.nuntius.chat/public/v1/conversations/start \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "channelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "phone": "example", "templateName": "example", "templateLanguage": "example", "variables": [], "leadId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Start (or resume) a 1:1 outbound WhatsApp conversation with an APPROVED template
(SPEC_API_PUBLICA.md §2.3) – SAME contract/steps as the internal POST /inbox/ conversations/start-whatsapp (inbox.py::start_whatsapp_conversation, CNV-1 D1), reusing
every one of its application-layer collaborators: template approval, channel-identity
resolution, active-conversation reuse, the provider send itself. See that function’s own
docstring for the full ordering/rollback contract (unchanged here).
channelId foreign/unknown -> 404; not a connected WhatsApp channel -> 422.
(templateName, templateLanguage) not an APPROVED template of THIS tenant -> 422
(CampaignTemplateNotApprovedError). leadId, when given, foreign/unknown -> 404,
resolved BEFORE any write/send. The resulting (or reused) conversation is assigned to the KEY
OWNER (PublicStartConversationRequest’s own docstring), never anything the body could
override.
Idempotency-Key (API-3, D-API-4) is optional: a repeat with the SAME header and SAME body
replays the original response without sending a second WhatsApp template; the SAME header
with a DIFFERENT body -> 422 IDEMPOTENCY_KEY_REUSE_MISMATCH.
Permiso necesario: tenant:conversations.manage
