- Applications (the webhook URLs a number points at) are on Connect a number.
- Replace
<values>with your own and omit[flags]unless adding options. - Paged lists take
--limit,--offsetand--all. Global flags: see Configuration.
Account
plivo account update
plivo account update
Usage and spend
plivo account usage shows what the account used and spent over a date window. It needs CLI v1.3.0 or later and reads Plivo’s Usage Summary API. Use it for any question about spend: adding up call or message records gives a different, incomplete number. To check the balance instead, use plivo auth whoami or plivo account get.
It prints a usage row per period, product, type, country and direction; other charges (number rentals, number lookups, fees, taxes); and the total spend with its currency. The CAUSE column appears when rows carry an error code or a hangup cause.
The date window
--sinceand--untilare UTC dates,YYYY-MM-DD.--from-dateand--to-dateare the same flags.--untilis exclusive:--until 2026-11-01ends with October 31. The call and message lists differ: there a bare--untildate includes that whole day.- Without
--since, the window is the 7 days before--until. Without--until, the window ends at the start of today in UTC. With no dates you get the previous seven complete days. - A window that holds no day, such as an
--untilthat isn’t after--since, is refused before any request.
--granularity sets the period of each row. Plivo limits the window for each:
The CLI doesn’t check a longer window. The API refuses it with a 400, printed as a
VALIDATION_ERROR (exit code 1), for example granularity=day supports a max window of 92 days (requested 122 days); use granularity=month for larger windows.
Filters
A value outside these is refused with
BAD_FLAG before any request. Other charges are left out with --subaccount, or when --product leaves out other. total_spend then covers only the matching usage rows.
Pages and output
--limit sets usage rows per page, from 1 to 1000 (default 100). There is no --offset. --all reads every page of usage rows; the totals and other charges come with the first page and already cover the whole window. Plivo allows 20 requests a minute on this API, so --limit 1000 --all needs the fewest requests.
Subaccounts
A subaccount separates resources under your main Plivo account. Itsauth_token and new_auth_token read [REDACTED] in every output format. create still shows the new token once. Add --show-secrets to see them in other output.
plivo account subaccounts create
plivo account subaccounts create
plivo account subaccounts update
plivo account subaccounts update
Verify
Send a one-time password (OTP) and validate the code the recipient enters. Enable Verify and create a Verify application first; use its ID as--app-uuid. See the Verify API.
--dry-run for --yes to send the code. Then submit the received code with plivo verify sessions validate "<session_uuid>" --otp "<code>".
plivo verify sessions create
plivo verify sessions create
plivo verify sessions list
plivo verify sessions list
The API puts the rows at
data.sessions. --all, -o jsonl and -o csv read them there.Lookup
Look up the carrier, number type and formatting for an E.164 number (country code plus number, such as+14155550101) through lookup.plivo.com.