How it works
The sandbox is a Messages.dev-owned iMessage line that all users share. To keep messages private, each user pairs their personal phone number with their account through an activation code.Activation
- Go to the Lines page in your dashboard
- Scan the QR code with your phone, or copy the activation code and text it to the sandbox number
- Once the message is received, your sandbox is activated and your phone number is paired
Limits
| Messages per day | 50 |
| Reset time | Midnight UTC |
| Recipient | Your paired phone number only |
| Features | Send, receive, reactions, typing, read receipts, webhooks |
Sending messages
Use the sandbox line handle as thefrom field and your paired phone number as to:
Receiving messages
Register a webhook on the sandbox line to receive notifications when your paired phone sends messages back:- Go to Webhooks in the dashboard
- Select the sandbox line and enter your endpoint URL
- Webhooks are scoped to your account; you only receive events for your paired phone number
Upgrading to a dedicated line
The sandbox is designed for testing and evaluation. For production use:- Set up a dedicated Messages.dev daemon
- Get your own dedicated iMessage line with no daily limits
- See the quickstart guide for setup instructions
Errors
| Status | Code | Meaning |
|---|---|---|
| 403 | sandbox_not_activated | Your sandbox hasn’t been activated yet. Text the activation code to the sandbox number. |
| 400 | sandbox_contact_mismatch | You can only send to your paired phone number on the sandbox line. |
| 429 | sandbox_quota_exceeded | Daily limit of 50 messages reached. Resets at midnight UTC. |