communication
Sinch CLI for CI
Use the Sinch CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write API token auth
Sinch CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. 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 CI
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.