Bulk SMS API documentation

    Send SMS from your website, app or system to any Tanzanian number. Create a Bulk SMS API key in Bulk SMS Studio → API & Developers after signing in.

    Quick start

    Endpoint: https://astrapanel.site/api/public/v1/sms

    Send your key in the x-api-key header. Limit: 60 requests per minute. Keep the key on your server only.

    curl -X POST https://astrapanel.site/api/public/v1/sms \
      -H "x-api-key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"action":"send","recipients":["255712345678","0754000000"],"message":"Your order #123 is ready","sms_type":"transactional"}'

    Actions

    sendPOST

    Send or schedule an SMS to up to 1,000 numbers.

    recipients
    Required. Array or comma-separated list. 07…, 06…, 2557… accepted
    message
    Required. 1–1,000 characters (160 per part, 70 with emoji)
    sender_id
    Optional. Your approved Sender ID, default ASTRAPANEL
    sms_type
    Optional. transactional (default), promotional or otp
    scheduled_at
    Optional. ISO date 2 minutes to 90 days ahead
    { "success": true, "status": "submitted", "campaign_id": "…", "recipients": 2,
      "segments": 1, "total_sms": 2, "credits_used": 2, "cost_tzs": 0, "invalid_numbers": [] }
    balanceGET/POST

    Wallet balance and SMS credits left.

    { "success": true, "balance_tzs": 12500, "sms_credits": 340, "currency": "TZS" }
    sendersGET/POST

    Sender IDs you can use.

    { "success": true, "sender_ids": ["ASTRAPANEL", "MYSHOP"], "default": "ASTRAPANEL" }
    statusGET/POST

    Check a send by campaign_id.

    campaign_id
    Required. Returned by send
    { "success": true, "campaign": { "status": "sent", "recipient_count": 2, … } }

    Error codes

    400Missing or invalid fields / no valid numbers
    401Missing or wrong Bulk SMS API key
    402Not enough SMS credits or balance
    403Key inactive or Sender ID not approved
    429More than 60 requests per minute
    502SMS network failed — charge refunded

    See the pricing page for SMS costs.

    Ready to start?