sinch_get_group
Get details for a specific group in your Sinch account.
- Operation
- Read
read - Full name
sinch.sinch_get_group
| Parameter | Type | Required | Description |
|---|---|---|---|
group_id | string | yes | The unique identifier of the group. |
communication
Agent-facing Lua documentation and function reference for the Sinch KosmoKrator integration.
Agents call this integration through app.integrations.sinch.*.
Use lua_read_doc("integrations.sinch") inside KosmoKrator to discover the same reference at runtime.
This is the rendered version of the full Lua documentation exposed to agents when they inspect the integration namespace.
List inbound and outbound SMS messages from Sinch. Supports filtering by direction, recipient, sender, and date range.
| Name | 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). |
local result = app.integrations.sinch.sinch_list_messages({
direction = "mt"
page = 0
page_size = 30
})
Send an SMS message to one or more recipients via Sinch. Requires sender phone number, recipient(s), and message body.
| Name | 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. |
local result = app.integrations.sinch.sinch_send_sms({
from = "+1234567890"
to = {"+1987654321"}
body = "Hello from Sinch!"
})
List all rented phone numbers in your Sinch account with pagination.
| Name | 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). |
local result = app.integrations.sinch.sinch_list_phone_numbers({
page = 0
page_size = 30
})
Get details for a specific phone number in your Sinch account.
| Name | Type | Required | Description |
|---|---|---|---|
phone_number | string | yes | The phone number to look up (E.164 format, e.g. “+1234567890”). |
local result = app.integrations.sinch.sinch_get_phone_number({
phone_number = "+1234567890"
})
List all groups in your Sinch account with pagination.
| Name | 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). |
local result = app.integrations.sinch.sinch_list_groups({
page = 0
page_size = 30
})
Get details for a specific group in your Sinch account.
| Name | Type | Required | Description |
|---|---|---|---|
group_id | string | yes | The unique identifier of the group. |
local result = app.integrations.sinch.sinch_get_group({
group_id = "group_abc123"
})
List all message batches in your Sinch account with pagination.
| Name | 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). |
local result = app.integrations.sinch.sinch_list_batches({
page = 0
page_size = 30
})
If you have multiple sinch accounts configured, use account-specific namespaces:
-- Default account (always works)
app.integrations.sinch.function_name({...})
-- Explicit default (portable across setups)
app.integrations.sinch.default.function_name({...})
-- Named accounts
app.integrations.sinch.work.function_name({...})
app.integrations.sinch.personal.function_name({...})
All functions are identical across accounts — only the credentials differ.
# Client for the Sinch SMS API — Lua API Reference
## sinch_list_messages
List inbound and outbound SMS messages from Sinch. Supports filtering by direction, recipient, sender, and date range.
### Parameters
| Name | 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). |
### Example
```lua
local result = app.integrations.sinch.sinch_list_messages({
direction = "mt"
page = 0
page_size = 30
})
```
## sinch_send_sms
Send an SMS message to one or more recipients via Sinch. Requires sender phone number, recipient(s), and message body.
### Parameters
| Name | 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. |
### Example
```lua
local result = app.integrations.sinch.sinch_send_sms({
from = "+1234567890"
to = {"+1987654321"}
body = "Hello from Sinch!"
})
```
## sinch_list_phone_numbers
List all rented phone numbers in your Sinch account with pagination.
### Parameters
| Name | 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). |
### Example
```lua
local result = app.integrations.sinch.sinch_list_phone_numbers({
page = 0
page_size = 30
})
```
## sinch_get_phone_number
Get details for a specific phone number in your Sinch account.
### Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `phone_number` | string | yes | The phone number to look up (E.164 format, e.g. "+1234567890"). |
### Example
```lua
local result = app.integrations.sinch.sinch_get_phone_number({
phone_number = "+1234567890"
})
```
## sinch_list_groups
List all groups in your Sinch account with pagination.
### Parameters
| Name | 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). |
### Example
```lua
local result = app.integrations.sinch.sinch_list_groups({
page = 0
page_size = 30
})
```
## sinch_get_group
Get details for a specific group in your Sinch account.
### Parameters
| Name | Type | Required | Description |
|------|------|----------|-------------|
| `group_id` | string | yes | The unique identifier of the group. |
### Example
```lua
local result = app.integrations.sinch.sinch_get_group({
group_id = "group_abc123"
})
```
## sinch_list_batches
List all message batches in your Sinch account with pagination.
### Parameters
| Name | 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). |
### Example
```lua
local result = app.integrations.sinch.sinch_list_batches({
page = 0
page_size = 30
})
```
---
## Multi-Account Usage
If you have multiple sinch accounts configured, use account-specific namespaces:
```lua
-- Default account (always works)
app.integrations.sinch.function_name({...})
-- Explicit default (portable across setups)
app.integrations.sinch.default.function_name({...})
-- Named accounts
app.integrations.sinch.work.function_name({...})
app.integrations.sinch.personal.function_name({...})
```
All functions are identical across accounts — only the credentials differ. local result = app.integrations.sinch.sinch_get_group({
group_id = "example_group_id"
})
print(result) sinch_get_groupGet details for a specific group in your Sinch account.
readsinch.sinch_get_group| Parameter | Type | Required | Description |
|---|---|---|---|
group_id | string | yes | The unique identifier of the group. |
sinch_get_phone_numberGet details for a specific phone number in your Sinch account.
readsinch.sinch_get_phone_number| Parameter | Type | Required | Description |
|---|---|---|---|
phone_number | string | yes | The phone number to look up (E.164 format, e.g. "+1234567890"). |
sinch_list_batchesList all message batches in your Sinch account with pagination.
readsinch.sinch_list_batches| 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_list_groupsList all groups in your Sinch account with pagination.
readsinch.sinch_list_groups| 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_list_messagesList inbound and outbound SMS messages from Sinch. Supports filtering by direction, recipient, sender, and date range.
readsinch.sinch_list_messages| 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_list_phone_numbersList all rented phone numbers in your Sinch account with pagination.
readsinch.sinch_list_phone_numbers| 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_send_smsSend an SMS message to one or more recipients via Sinch. Requires sender phone number, recipient(s), and message body.
writesinch.sinch_send_sms| 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. |