KosmoKrator

communication

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.

7 functions 6 read 1 write API token auth

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 use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
service_plan_id SINCH_SERVICE_PLAN_ID Text text yes Service Plan ID
api_token SINCH_API_TOKEN Secret secret yes API Token

Call Sinch Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call sinch.sinch_get_group '{
  "group_id": "example_group_id"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:sinch sinch_get_group '{
  "group_id": "example_group_id"
}' --json

Agent Discovery Commands

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

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Sinch.

sinch.sinch_get_group

Read read

Get details for a specific group in your Sinch account.

Parameters
group_id

Generic CLI call

kosmo integrations:call sinch.sinch_get_group '{"group_id":"example_group_id"}' --json

Provider shortcut

kosmo integrations:sinch sinch_get_group '{"group_id":"example_group_id"}' --json

sinch.sinch_get_phone_number

Read read

Get details for a specific phone number in your Sinch account.

Parameters
phone_number

Generic CLI call

kosmo integrations:call sinch.sinch_get_phone_number '{"phone_number":"example_phone_number"}' --json

Provider shortcut

kosmo integrations:sinch sinch_get_phone_number '{"phone_number":"example_phone_number"}' --json

sinch.sinch_list_batches

Read read

List all message batches in your Sinch account with pagination.

Parameters
page, page_size

Generic CLI call

kosmo integrations:call sinch.sinch_list_batches '{"page":1,"page_size":1}' --json

Provider shortcut

kosmo integrations:sinch sinch_list_batches '{"page":1,"page_size":1}' --json

sinch.sinch_list_groups

Read read

List all groups in your Sinch account with pagination.

Parameters
page, page_size

Generic CLI call

kosmo integrations:call sinch.sinch_list_groups '{"page":1,"page_size":1}' --json

Provider shortcut

kosmo integrations:sinch sinch_list_groups '{"page":1,"page_size":1}' --json

sinch.sinch_list_messages

Read read

List inbound and outbound SMS messages from Sinch. Supports filtering by direction, recipient, sender, and date range.

Parameters
direction, to, from, start_date, end_date, page, page_size

Generic CLI call

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

Provider shortcut

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

Read read

List all rented phone numbers in your Sinch account with pagination.

Parameters
page, page_size

Generic CLI call

kosmo integrations:call sinch.sinch_list_phone_numbers '{"page":1,"page_size":1}' --json

Provider shortcut

kosmo integrations:sinch sinch_list_phone_numbers '{"page":1,"page_size":1}' --json

sinch.sinch_send_sms

Write write

Send an SMS message to one or more recipients via Sinch. Requires sender phone number, recipient(s), and message body.

Parameters
from, to, body, delivery_report, expire_at, send_at

Generic CLI call

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

Provider shortcut

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

Get details for a specific group in your Sinch account.

Operation
Read read
Schema command
kosmo integrations:schema sinch.sinch_get_group --json
ParameterTypeRequiredDescription
group_id string yes The unique identifier of the group.

sinch.sinch_get_phone_number

Get details for a specific phone number in your Sinch account.

Operation
Read read
Schema command
kosmo integrations:schema sinch.sinch_get_phone_number --json
ParameterTypeRequiredDescription
phone_number string yes The phone number to look up (E.164 format, e.g. "+1234567890").

sinch.sinch_list_batches

List all message batches in your Sinch account with pagination.

Operation
Read read
Schema command
kosmo integrations:schema sinch.sinch_list_batches --json
ParameterTypeRequiredDescription
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

List all groups in your Sinch account with pagination.

Operation
Read read
Schema command
kosmo integrations:schema sinch.sinch_list_groups --json
ParameterTypeRequiredDescription
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

List inbound and outbound SMS messages from Sinch. Supports filtering by direction, recipient, sender, and date range.

Operation
Read read
Schema command
kosmo integrations:schema sinch.sinch_list_messages --json
ParameterTypeRequiredDescription
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

List all rented phone numbers in your Sinch account with pagination.

Operation
Read read
Schema command
kosmo integrations:schema sinch.sinch_list_phone_numbers --json
ParameterTypeRequiredDescription
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

Send an SMS message to one or more recipients via Sinch. Requires sender phone number, recipient(s), and message body.

Operation
Write write
Schema command
kosmo integrations:schema sinch.sinch_send_sms --json
ParameterTypeRequiredDescription
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.