sendmock numbers add
Add a number.
sendmock numbers add [flags]
| Flag | Type | Description |
|---|---|---|
| --number <number>required | string | E.164, without a channel prefix; channels says whether WhatsApp works.Example: +15550001111 |
| --label <label>required | string | A name for the number, e.g. the app or feature that uses it.Example: Support line |
| --channel <channel>required | string[] (repeat for more) | Where the number works: sms, whatsapp or both.One of: sms, whatsappExample: ["sms"] |
| --inbound-url <inbound-url> | string | Reply webhook (Twilio "A message comes in"); null means rules only.Example: http://localhost:3000/sms/inbound |
| --inbound-method <inbound-method>required | string | The HTTP method of the reply webhook.One of: POST, GETExample: POST |
| --inbound-fallback-url <inbound-fallback-url> | string | Called when the reply webhook fails, with ErrorCode and ErrorUrl added, as Twilio does.Example: http://localhost:3000/sms/inbound-fallback |
| --inbound-template-id <inbound-template-id> | string | Payload template for the inbound webhook, e.g. twilio.inbound_sms.Example: twilio.inbound_sms |
| --status-callback-url <status-callback-url> | string | Your app's URL for status changes of messages sent from this number.Example: http://localhost:3000/sms/status |
| --messaging-service-sid <messaging-service-sid> | string | The Messaging Service this number belongs to, MG...; null for none.Example: MG00000000000000000000000000000001 |
Example
sendmock numbers add --number +15550001111 --label 'Support line' --channel sms --inbound-method POST --inbound-url http://localhost:3000/sms/inbound --inbound-fallback-url http://localhost:3000/sms/inbound-fallback
Output with --json: VirtualNumber. Exit codes: 0, 1, 2.
- API
- POST
/api/v1/numbers - MCP tool
sendmock_number_upsert- In the app
- Numbers > Add number