Appearance
Replit
Add multi-channel notifications to your Replit app using Sendivent's API.
Overview
Replit is a cloud development platform where you can build and deploy apps. This guide shows how to add notification support — email, SMS, Slack, push, and more — to apps built on Replit.
Prerequisites
- A Sendivent account with an API key
- At least one event configured in your Sendivent dashboard
- A Replit account
Integration Steps
1. Add your API key
In your Repl, go to Secrets (lock icon in the sidebar) and add:
- Key:
SENDIVENT_API_KEY - Value: your
live_*ortest_*key
2. Prompt Replit Agent
Ask the Replit Agent to add Sendivent:
Add Sendivent notification support to this app. Create a server-side
endpoint that sends notifications via the Sendivent API.
API details:
- Endpoint: POST https://api.sendivent.com/v1/send/{event}
- Auth: Authorization: Bearer SENDIVENT_API_KEY (read from environment)
- Request body: { "to": "user@example.com", "payload": { ...dynamic data } }
- Response: { "id": "notification-uuid", "event": "welcome", "status": "accepted" }
The endpoint should:
1. Read SENDIVENT_API_KEY from the environment (already set in Secrets)
2. Accept event name, recipient, and payload as parameters
3. POST to the Sendivent API with Bearer token auth
4. Return the response
To send to a specific channel, use: POST /v1/send/{event}/{channel}
Supported channels: email, sms, slack, push, telegram, whatsapp, discord3. Test the integration
Trigger a notification flow in your app and check the Activity tab in your Sendivent dashboard.
Using Templates
Pass dynamic data via the payload field. Templates are managed in the Sendivent dashboard:
Update the endpoint to send a team notification:
Event name: team.alert
Recipient: { "slack": "#engineering" }
Payload: { "message": "Deploy completed", "service": "api", "version": "2.1.0" }Troubleshooting
Notifications not sending
- Verify
SENDIVENT_API_KEYis set in Replit Secrets - Check the event exists in your Sendivent dashboard
401 Unauthorized
- Confirm the API key is correct
- Check key prefix matches API URL (
test_*→api-sandbox.sendivent.com,live_*→api.sendivent.com)
Next Steps
- MCP Server — Give Replit Agent direct access to Sendivent tools
- Quickstart — Send your first notification
- API Reference — Full endpoint docs