Skip to main content
Migrate if your integration calls routes without /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 success or data. Lists have object: "list", data, has_more and next_cursor.
  • New field names. lead_id becomes id, bot_id becomes text_agent_id, phone_number becomes phone and dynamic_variables becomes variables.
  • Phone numbers in E.164. They always include the + and the country code.
  • A failed send is an error. The legacy routes could return 200 with sent: false.
  • A new error format. See Errors.

Request changes

  • text_agent_id goes in the body of POST /v1/messages, not in the URL.
  • On leads, phone_number becomes phone and dynamic_variables becomes variables.
  • On pause_ai, duration_min becomes duration_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 600111222 returns 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 /v1 shape, without success or data.
  • In a property, sales_agent_phone is null if the phone was saved without a country code, summary no longer adds a note when the listing is unavailable, and description is no longer cut at 1,200 characters.
Version 2 does not include:
  • Finding a lead by WhatsApp ID (BSUID). Use the ID or the phone.
  • The currency and date_time template variables. Send them as text.
  • quick_reply button parameters. Only URL buttons are supported.

Example: send a template