productivity
Sinch CLI for AI Agents
Use the Sinch CLI from KosmoKrator to call Sinch tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.Sinch CLI Setup
Sinch can be configured headlessly with `kosmokrator integrations:configure sinch`.
# 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 sinch --set service_plan_id="$SINCH_SERVICE_PLAN_ID" --set api_token="$SINCH_API_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor sinch --json
kosmokrator integrations:status --json Credentials
Authentication type: API token api_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
service_plan_id | SINCH_SERVICE_PLAN_ID | Text text | yes | Service Plan ID |
api_token | SINCH_API_TOKEN | Secret secret | yes | API Token |
Command Patterns
The generic command is stable across every integration. The provider shortcut is shorter for humans.
kosmo integrations:call sinch.sinch_get_group '{"group_id":"example_group_id"}' --json kosmo integrations:sinch sinch_get_group '{"group_id":"example_group_id"}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities 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 Automation Contexts
The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.
CLI Functions
Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.
sinch.sinch_get_group
Get details for a specific group in your Sinch account.
read - Parameters
- group_id
kosmo integrations:call sinch.sinch_get_group '{"group_id":"example_group_id"}' --json kosmo integrations:sinch sinch_get_group '{"group_id":"example_group_id"}' --json sinch.sinch_get_phone_number
Get details for a specific phone number in your Sinch account.
read - Parameters
- phone_number
kosmo integrations:call sinch.sinch_get_phone_number '{"phone_number":"example_phone_number"}' --json kosmo integrations:sinch sinch_get_phone_number '{"phone_number":"example_phone_number"}' --json sinch.sinch_list_batches
List all message batches in your Sinch account with pagination.
read - Parameters
- page, page_size
kosmo integrations:call sinch.sinch_list_batches '{"page":1,"page_size":1}' --json kosmo integrations:sinch sinch_list_batches '{"page":1,"page_size":1}' --json sinch.sinch_list_groups
List all groups in your Sinch account with pagination.
read - Parameters
- page, page_size
kosmo integrations:call sinch.sinch_list_groups '{"page":1,"page_size":1}' --json kosmo integrations:sinch sinch_list_groups '{"page":1,"page_size":1}' --json sinch.sinch_list_messages
List inbound and outbound SMS messages from Sinch. Supports filtering by direction, recipient, sender, and date range.
read - Parameters
- direction, to, from, start_date, end_date, page, page_size
kosmo integrations:call sinch.sinch_list_messages '{"direction":"example_direction","to":"example_to","from":"example_from","start_date":"example_start_date","end_date":"example_end_date","page":1,"page_size":1}' --json kosmo integrations:sinch sinch_list_messages '{"direction":"example_direction","to":"example_to","from":"example_from","start_date":"example_start_date","end_date":"example_end_date","page":1,"page_size":1}' --json sinch.sinch_list_phone_numbers
List all rented phone numbers in your Sinch account with pagination.
read - Parameters
- page, page_size
kosmo integrations:call sinch.sinch_list_phone_numbers '{"page":1,"page_size":1}' --json kosmo integrations:sinch sinch_list_phone_numbers '{"page":1,"page_size":1}' --json sinch.sinch_send_sms
Send an SMS message to one or more recipients via Sinch. Requires sender phone number, recipient(s), and message body.
write - Parameters
- from, to, body, delivery_report, expire_at, send_at
kosmo integrations:call sinch.sinch_send_sms '{"from":"example_from","to":"example_to","body":"example_body","delivery_report":"example_delivery_report","expire_at":"example_expire_at","send_at":"example_send_at"}' --json kosmo integrations:sinch sinch_send_sms '{"from":"example_from","to":"example_to","body":"example_body","delivery_report":"example_delivery_report","expire_at":"example_expire_at","send_at":"example_send_at"}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
sinch.sinch_get_group 1 parameters
kosmo integrations:schema sinch.sinch_get_group --json | Parameter | Type | Required | Description |
|---|---|---|---|
group_id | string | yes | The unique identifier of the group. |
sinch.sinch_get_phone_number 1 parameters
kosmo integrations:schema sinch.sinch_get_phone_number --json | Parameter | Type | Required | Description |
|---|---|---|---|
phone_number | string | yes | The phone number to look up (E.164 format, e.g. "+1234567890"). |
sinch.sinch_list_batches 2 parameters
kosmo integrations:schema sinch.sinch_list_batches --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default 0). |
page_size | integer | no | Number of results per page (default 30, max 100). |
sinch.sinch_list_groups 2 parameters
kosmo integrations:schema sinch.sinch_list_groups --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default 0). |
page_size | integer | no | Number of results per page (default 30, max 100). |
sinch.sinch_list_messages 7 parameters
kosmo integrations:schema sinch.sinch_list_messages --json | Parameter | Type | Required | Description |
|---|---|---|---|
direction | string | no | Filter by direction: "mt" (mobile terminated / outbound) or "mo" (mobile originated / inbound). |
to | string | no | Filter by destination phone number (E.164 format). |
from | string | no | Filter by originating phone number or sender (E.164 format). |
start_date | string | no | Start date for filtering (ISO 8601 format, e.g. 2024-01-01T00:00:00Z). |
end_date | string | no | End date for filtering (ISO 8601 format, e.g. 2024-12-31T23:59:59Z). |
page | integer | no | Page number for pagination (default 0). |
page_size | integer | no | Number of results per page (default 30, max 100). |
sinch.sinch_list_phone_numbers 2 parameters
kosmo integrations:schema sinch.sinch_list_phone_numbers --json | Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | no | Page number for pagination (default 0). |
page_size | integer | no | Number of results per page (default 30, max 100). |
sinch.sinch_send_sms 6 parameters
kosmo integrations:schema sinch.sinch_send_sms --json | Parameter | Type | Required | Description |
|---|---|---|---|
from | string | yes | Sender phone number or alphanumeric sender ID (E.164 format for numbers). |
to | array | yes | Array of recipient phone numbers in E.164 format (e.g. ["+1234567890"]). |
body | string | yes | The SMS message body text. |
delivery_report | string | no | Delivery report type: "none", "summary", or "full" (default "none"). |
expire_at | string | no | Message expiration time in ISO 8601 format. |
send_at | string | no | Scheduled send time in ISO 8601 format. |
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.