/v1, such as /bots/{id}/leads or /bots/{id}/templates/send, with an API key. Those routes will stop accepting API keys, and we will announce it in advance.
If you use a route that is not listed here, contact us before you migrate.
Route map
Response changes
- No wrapper. The response is the resource, without
successordata. Lists haveobject: "list",data,has_moreandnext_cursor. - New field names.
lead_idbecomesid,bot_idbecomestext_agent_id,phone_numberbecomesphoneanddynamic_variablesbecomesvariables. - Phone numbers in E.164. They always include the
+and the country code. - A failed send is an error. The legacy routes could return
200withsent: false. - A new error format. See Errors.
Request changes
text_agent_idgoes in the body ofPOST /v1/messages, not in the URL.- On leads,
phone_numberbecomesphoneanddynamic_variablesbecomesvariables. - On
pause_ai,duration_minbecomesduration_minutes.
Template message fields
Send text to a phone
POST /v1/messages with type: "text" requires lead_id. The legacy route accepted a phone and created the lead. To write to a new number, send a template, which accepts to and creates the lead, or create the lead first with POST /v1/leads.
n8n node
Updating the package does not change your workflows: each saved node stays on version 1 and keeps calling the legacy routes. Version 1 stops working when those routes stop accepting API keys. To move a workflow, add a new Newlead node and configure it again. Check these points before you migrate:- Version 2 needs a subaccount key. An organization key fails the credential test.
- Phone numbers need the country code. A local number such as
600111222returns an error. - Version 2 cannot be used as a tool of an AI agent. A workflow that needs it has to stay on version 1 for now.
- Message > Send by phone only finds a lead that already exists. For a new number, send a template or create the lead first.
- Lead > Get Many returns 50 leads by default. Turn on Return All to get them all.
- Running a finished execution again sends again, unless you set an Idempotency Key.
- Results have the
/v1shape, withoutsuccessordata. - In a property,
sales_agent_phoneisnullif the phone was saved without a country code,summaryno longer adds a note when the listing is unavailable, anddescriptionis no longer cut at 1,200 characters.
- Finding a lead by WhatsApp ID (BSUID). Use the ID or the phone.
- The
currencyanddate_timetemplate variables. Send them as text. quick_replybutton parameters. Only URL buttons are supported.
Renamed fields in the node
Renamed fields in the node