POST /v2/messages/sendInbox
Sends a message to a user’s inbox within the Rebell app. Inbox messages persist and can be viewed later, unlike push notifications which are transient.
Request Parameters
Unique request identifier (idempotency key).Max length: 64 characters
User ID to send the message to.Max length: 64 characters
Message title.Max length: 128 characters
Message body text. Supports basic formatting.Max length: 4096 characters
Message category for organization (e.g.,
ORDER, PROMOTION, SYSTEM).Max length: 32 charactersURL or deep link to open when message is tapped.Max length: 2048 characters
URL to an image to display with the message.Max length: 2048 characters
Extended information as JSON string.Max length: 2048 characters
Response Parameters
Standard result object
Unique message identifier for tracking
Example Request
Example Response
Result Codes
| resultStatus | resultCode | Description | Action |
|---|---|---|---|
S | SUCCESS | Message sent | Appears in user’s inbox |
F | USER_NOT_EXIST | User not found | Verify targetUserId |
F | PARAM_ILLEGAL | Invalid parameters | Check request |
U | SENDING | Message queued | Will be delivered |
Use Cases
Order Receipts
Send detailed receipts after purchase
Promotional Messages
Announce special offers and discounts
Account Updates
Notify about account changes
Service Announcements
Important service updates
Implementation Example
Differences: Push vs Inbox
| Feature | Push Notification | Inbox Message |
|---|---|---|
| Persistence | Transient | Stored in inbox |
| Length | Short (256 chars) | Long (4096 chars) |
| Visibility | Lock screen/banner | In-app inbox |
| Use case | Time-sensitive alerts | Receipts, details |
| Images | No | Yes |