Quick Start

Send your first message via MassAccess API in 5 minutes.

TipMake sure you have an API key. If not, get one in Settings → API in your dashboard.

Step 1: Get an API key

Log in to your dashboard and go to Settings → API. Generate a new key and save it.

Step 2: Send a request

Use the example below, replacing YOUR_API_KEY with your key and the phone number with a real one:

Code Examples

bash
curl -X POST /api/v1/send \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "phone_number": "12345678901",
    "text": Hello! This is my first message via MassAccess API,
    "service": "telegram"
  }'

Step 3: Check the response

On success, you will receive a response with message_id and status new:

json
{
  "status": "accepted",
  "event_id": "550e8400-e29b-41d4-a716-446655440000",
  "data": {
    "state": "new"
  }
}

Step 4: Track status

To receive delivery webhooks, configure a webhook URL in your dashboard. Learn more in the Webhooks section.