sendmock_messaging_service_create
Add a Messaging Service.
Toolset numbers.
| Input | Type | Description |
|---|---|---|
| friendly_namerequired | string | A name for the service.Example: Notifications |
| number_idsrequired | string[] | The virtual numbers in the sender pool, by ID.Example: ["01JB7T9Q2R5W8X3Y6Z1A4B7C9D"] |
| inbound_moderequired | string | What happens to inbound messages: webhook (call inbound_url), defer_to_sender (each number's own webhook) or drop.One of: webhook, defer_to_sender, dropExample: webhook |
| inbound_url | string | Used when inbound_mode is webhook.Example: http://localhost:3000/sms/inbound |
| inbound_fallback_url | string | Called when inbound_url fails.Example: http://localhost:3000/sms/inbound-fallback |
Example call
{
"name": "sendmock_messaging_service_create",
"arguments": {
"friendly_name": "Notifications",
"number_ids": [
"01JB7T9Q2R5W8X3Y6Z1A4B7C9D"
],
"inbound_mode": "webhook",
"inbound_url": "http://localhost:3000/sms/inbound",
"inbound_fallback_url": "http://localhost:3000/sms/inbound-fallback"
}
}Result: MessagingService
- API
- POST
/api/v1/messaging-services - CLI
sendmock sms services create- In the app
- Numbers > Messaging Services > New Messaging Service