KosmoKrator

communication

Sinch CLI for Shell Scripts

Use the Sinch CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write API token auth

Sinch CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Sinch CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Sinch CLI for Shell Scripts
kosmokrator integrations:configure sinch --set service_plan_id="$SINCH_SERVICE_PLAN_ID" --set api_token="$SINCH_API_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call sinch.sinch_get_group '{"group_id":"example_group_id"}' --json

Discovery Before Execution

Agents and scripts can inspect Sinch docs and schemas before choosing a function.

kosmo integrations:docs sinch --json
kosmo integrations:docs sinch.sinch_get_group --json
kosmo integrations:schema sinch.sinch_get_group --json
kosmo integrations:search "Sinch" --json
kosmo integrations:list --json

Useful Sinch CLI Functions

FunctionTypeParametersDescription
sinch.sinch_get_group Read group_id Get details for a specific group in your Sinch account.
sinch.sinch_get_phone_number Read phone_number Get details for a specific phone number in your Sinch account.
sinch.sinch_list_batches Read page, page_size List all message batches in your Sinch account with pagination.
sinch.sinch_list_groups Read page, page_size List all groups in your Sinch account with pagination.
sinch.sinch_list_messages Read direction, to, from, start_date, end_date, page, page_size List inbound and outbound SMS messages from Sinch. Supports filtering by direction, recipient, sender, and date range.
sinch.sinch_list_phone_numbers Read page, page_size List all rented phone numbers in your Sinch account with pagination.
sinch.sinch_send_sms Write from, to, body, delivery_report, expire_at, send_at Send an SMS message to one or more recipients via Sinch. Requires sender phone number, recipient(s), and message body.

Automation Notes

Related Sinch CLI Pages