Skip to main content
Check your account balance and usage, manage subaccounts, verify phone numbers, or look up their carriers. After logging in, start with your account details:
  • 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, --offset and --all. Global flags: see Configuration.

Account

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

  • --since and --until are UTC dates, YYYY-MM-DD. --from-date and --to-date are the same flags.
  • --until is exclusive: --until 2026-11-01 ends with October 31. The call and message lists differ: there a bare --until date 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 --until that 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. Its auth_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.

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.
Swap --dry-run for --yes to send the code. Then submit the received code with plivo verify sessions validate "<session_uuid>" --otp "<code>".
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.
Each lookup is billed, USD 0.004 per request, and the CLI notes the charge on stderr on each run. It takes no --yes, so it runs without confirmation. Preview with plivo lookup +14155550101 --dry-run, which prints the request without sending it.