Use the Plivo CLI from KosmoKrator to call Plivo tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Plivo can be configured headlessly with `kosmokrator integrations:configure plivo`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure plivo --set auth_id="$PLIVO_AUTH_ID" --set auth_token="$PLIVO_AUTH_TOKEN" --enable --read allow --write ask --jsonkosmokrator integrations:doctor plivo --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API tokenapi_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
auth_id
PLIVO_AUTH_ID
Text text
yes
Auth ID
auth_token
PLIVO_AUTH_TOKEN
Secret secret
yes
Auth Token
Call Plivo Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Plivo.
plivo.plivo_list_messages
Read read
List SMS messages from Plivo with optional filters. Supports filtering by direction (inbound/outbound), message state, date range, sender, and recipient. Returns paginated message records.
Send an SMS message via Plivo. Specify a source phone number (must be a Plivo number), one or more destination numbers, and the message text. Returns the message UUID and details.
Retrieve details of a specific phone number on your Plivo account by its number (e.g., "+14155552671"). Returns alias, application, service type, and other number properties.
List calls from Plivo with optional filters. Supports filtering by direction (inbound/outbound), call state, date range, and phone numbers. Returns paginated call records.
Retrieve detailed information about a specific Plivo call by its call UUID. Returns call details including duration, direction, status, and recording information.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
plivo.plivo_list_messages
List SMS messages from Plivo with optional filters. Supports filtering by direction (inbound/outbound), message state, date range, sender, and recipient. Returns paginated message records.
Maximum number of results to return (default: 20, max: 100).
offset
integer
no
Offset for pagination (default: 0).
message_direction
string
no
Filter by direction: "inbound" or "outbound".
message_state
string
no
Filter by state: "queued", "sent", "delivered", "undelivered", or "failed".
src
string
no
Filter by source phone number (sender).
dst
string
no
Filter by destination phone number (recipient).
start_time
string
no
Filter messages after this datetime (ISO 8601, e.g., "2026-01-01T00:00:00Z").
end_time
string
no
Filter messages before this datetime (ISO 8601, e.g., "2026-01-31T23:59:59Z").
plivo.plivo_send_sms
Send an SMS message via Plivo. Specify a source phone number (must be a Plivo number), one or more destination numbers, and the message text. Returns the message UUID and details.
Maximum number of results to return (default: 20, max: 100).
offset
integer
no
Offset for pagination (default: 0).
number_type
string
no
Filter by number type: "local", "tollfree", or "national".
service
string
no
Filter by service: "voice", "sms", or "voice,sms".
plivo.plivo_get_number
Retrieve details of a specific phone number on your Plivo account by its number (e.g., "+14155552671"). Returns alias, application, service type, and other number properties.
The phone number to retrieve (e.g., "+14155552671").
plivo.plivo_list_calls
List calls from Plivo with optional filters. Supports filtering by direction (inbound/outbound), call state, date range, and phone numbers. Returns paginated call records.
Maximum number of results to return (default: 20, max: 100).
offset
integer
no
Offset for pagination (default: 0).
call_direction
string
no
Filter by direction: "inbound" or "outbound".
call_state
string
no
Filter by state: "ringing", "in-progress", "ended", etc.
from_number
string
no
Filter by caller phone number.
to_number
string
no
Filter by callee phone number.
start_time
string
no
Filter calls after this datetime (ISO 8601).
end_time
string
no
Filter calls before this datetime (ISO 8601).
plivo.plivo_get_call
Retrieve detailed information about a specific Plivo call by its call UUID. Returns call details including duration, direction, status, and recording information.
Maximum number of results to return (default: 20, max: 100).
offset
integer
no
Offset for pagination (default: 0).
Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.