How to set up OneSignal
Authentication
OneSignal requires App credentials:- Log in to your OneSignal account
- Navigate to Settings → Keys & IDs
- Obtain your credentials:
- App ID: Your OneSignal App ID
- REST API Key: Your REST API key
- Enter both in Cargo when connecting
OneSignal actions
Send SMS
Send an SMS message using OneSignal’s messaging platform. Required fields:- SMS Identifier: Tracking identifier for the message
- From: Sending phone number (Twilio number in E.164 format)
- To: Recipient phone number
- Content: SMS message content (supports expressions)
- Media URLs: Attach media to the message (MMS)
Message formatting
SMS content supports dynamic expressions:Example messages
Appointment reminder:
Welcome message:
Alert notification:
E.164 phone format
Phone numbers must be in E.164 format:| Country | Format | Example |
|---|---|---|
| US | +1XXXXXXXXXX | +14155551234 |
| UK | +44XXXXXXXXXX | +442071234567 |
| France | +33XXXXXXXXX | +33123456789 |
Best practices
- Use unique SMS identifiers for tracking
- Keep messages concise (SMS has 160 character limit)
- Include clear call-to-action
- Respect opt-out preferences
- Use MMS for rich media when appropriate
- Test phone number formatting before campaigns
Compliance
- Ensure recipients have opted in to SMS
- Include opt-out instructions when required
- Follow local SMS regulations (TCPA, GDPR, etc.)
- Respect quiet hours for non-urgent messages
Use cases
- Transactional alerts: Order updates, shipping notifications
- Reminders: Appointments, renewals, deadlines
- Engagement: Welcome messages, re-engagement
- Support: Ticket updates, resolution notices
- Sales: Direct outreach, meeting reminders

