Voice & SMS
Sinch SMS mock API
Stateful Sinch SMS replica: batches with cancel and derived delivery reports, groups, seeded inbounds and per-batch delivery-report callbacks.
At a glance
- Operations
- 20
- Stateful operations
- 18
- Stateful resources
- 4
- Webhook events
- 2
- Vendor API version
- v1
- Verification
- Spec-verified
How it works
Use Sinch SMS without calling Sinch AB
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
Authorization: Bearer sinch_mock_token_0123456789abcdef State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Batches | 6 |
| Delivery reports | 4 |
| Groups | 7 |
| Inbounds | 2 |
Webhooks
Events your handlers can receive
- delivery_report_sms
- recipient_delivery_report_sms
Deliveries are unsigned: Sinch SMS callbacks carry no documented signature (the signed x-sinch-webhook-signature scheme belongs to the Conversation API, not the SMS API).
Coverage
20 operations
18 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Groups | 7 |
| Batches | 6 |
| Delivery reports | 4 |
| Inbounds | 2 |
| Other operations | 1 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
Source and limits
License, source and limits
- Generated from the Sinch AB API description, licensed under MIT (declared in info.license; no licence text at the cited URL).
- Sinch AB API documentation
- Source specification
Each collection holds up to 1 MiB of objects per bearer token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Delivery reports are derived from batch age (Queued under 0.5 s, Dispatched under 1.5 s, Delivered afterwards with code 0 as the vendor docs show, although the spec code enum omits 0); a cancelled batch reports Cancelled/407. Callbacks go to the batch callback_url and are unsigned: summary and full reports carry all recipients, per_recipient and per_recipient_final callbacks are emitted for the first recipient only, inbound mo_text callbacks are never triggered. Not modelled: start_date/end_date filters, status/code filters on the account-wide delivery_reports list, add_from_group/remove_from_group on a group update, per-recipient membership checks on the per-recipient report, and unknown-group checks beyond the first recipient of a send (a recipient that does not start with + is treated as a group id). Any service_plan_id is accepted; state is per bearer token. 401 and 404 answers have no body, as the vendor documents.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Sinch AB. Sinch SMS is a trademark of its owner.