jelou phone-numbers manages the WhatsApp numbers your company buys through
Jelou: US numbers (+1) billed with your plan. With these commands you check
whether you can buy, buy a number, read the SMS with Meta’s verification code
and release numbers you no longer use.
From number to connected channel
1
Check whether you can buy
2
Find an available number
3
Buy the number
id.4
Connect it to WhatsApp
Purchase cost
The purchase is charged according to your company’s plan:
Before you confirm,
buy shows you which of the three cases applies and, if
there is a charge, the price of the line. If it cannot read the price, it does
not buy.
The purchase also depends on your plan’s channels: if you have used them all,
capability and buy tell you so and nothing is bought.
jelou phone-numbers capability
- whether you can buy now;
- the cost of the next purchase (included in the plan, line already paid for, or new line);
- open lines (paid for, with no number);
- connected channels against your plan’s limit;
- numbers that have no channel yet.
jelou phone-numbers list
--status filters by state:
jelou phone-numbers messages
jelou phone-numbers buy
Common errors:
jelou phone-numbers delete
Connect the number with channels activate
--phone-number makes jelou channels activate whatsapp work on a number
bought with phone-numbers buy:
- The WhatsApp activation opens in Jelou with that number already selected.
- While you wait, the CLI prints in the terminal every SMS the number receives, including Meta’s code.
- The wait ends when that number is connected, not when any other WhatsApp channel of the company shows up.
--project and --name only prefill the activation: you can change them there
before finishing.
channel_id, bot_id and
project. The bot_id is the one used by
jelou template and jelou campaign.
If the number already has a channel,
activate --phone-number fails before
opening the browser and returns that channel’s id. With --watch, instead, it
finishes right away with that channel as the result.Use from an agent
With--agent or --no-input, buy and delete require --yes. An agent
should read capability, show the cost to the user and pass --yes only after
the user agrees.
buy adds a charge field with the kind of charge (included,
open_line or new_line) and, when there is a charge, the price. When a
purchase is left pending, the error is TRANSIENT_ERROR with
retryable: true: the agent can repeat the same command with no risk of a
double charge.