Notifications

Send SMS and email via a single API

SMS Sent

Emails Sent

Delivered

Total Cost

Endpoints

Authenticate with your API key as the X-API-Key header

POST/v1/notifications/sms
POST/v1/notifications/email
GET/v1/notifications

Send SMS

POST /v1/notifications/sms

Request

curl -X POST https://api.prostackng.com.ng/v1/notifications/sms \
  -H "X-API-Key: psk_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "08012345678",
    "message": "Your OTP is 4821. Expires in 5 minutes.",
    "sender_id": "ProStack"
  }'

Response

{
  "success": true,
  "message_id": "msg_abc123",
  "to": "08012345678",
  "status": "sent",
  "cost": 4.00
}

Send Email

POST /v1/notifications/email

Request

curl -X POST https://api.prostackng.com.ng/v1/notifications/email \
  -H "X-API-Key: psk_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "user@example.com",
    "subject": "Welcome to our platform",
    "body": "<h1>Welcome!</h1><p>Thanks for signing up.</p>"
  }'

Response

{
  "success": true,
  "message_id": "msg_xyz789",
  "to": "user@example.com",
  "status": "sent",
  "cost": 0.50
}
History
0 sent
Loading...