Skip to the content.

get_wa_lines

List active WhatsApp lines for the account.

   
Permission whatsapp
REST equivalent (internal DB query — no standalone REST endpoint)

Returns WhatsApp sender numbers configured for your account. Use the number field as from_number in send_whatsapp and get_wa_templates.

Parameters

None.

Example

curl -X POST 'https://vox20.velip.com.br/mcpserver/velip' \
  -H 'Authorization: Bearer YOUR_TOKEN_30_CHARS' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_wa_lines","arguments":{}}}'

Responses

Success:

{
  "success": true,
  "lines": [
    {
      "id": "3",
      "number": "5511888888888",
      "name": "Main WA line"
    }
  ],
  "total": 1
}

If your account has exactly one line, from_number can be omitted in other WhatsApp tools (auto-detected).