Skip to content
Outreachvia
Developers

One API for SMS, WhatsApp and Email.

A single messages endpoint, predictable statuses and signed webhooks. The API is in design — the examples below show the proposed contract, and nothing on this page sends a real message.

Proposed API

Endpoints use api.example.com, a non-operational placeholder. Keys and recipients in examples are illustrative.

REST API

Planned
JSON over HTTPS, one endpoint for all channels.

Webhooks

Planned
Signed status events with retries.

SMTP relay

Planned
For email from existing systems.

Authentication

Bearer API keys, separate for test and production.

Test environment

Planned
Validate requests and receive simulated events.

Sender setup

Headers, numbers and domains configured during onboarding.

Message submission

Send an SMS — PHP first.

POST /v1/messagesProposed API example
<?php
// Proposed API — not yet operational
$payload = [
    "channel"  => "sms",
    "to"       => "+91XXXXXXXXXX",
    "sender"   => "EXMPLE",
    "template" => "appointment_confirmed",
    "variables"=> ["date" => "14 Mar", "time" => "10:30 AM"],
];

$ch = curl_init("https://api.example.com/v1/messages");
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => [
        "Authorization: Bearer " . getenv("OUTREACHVIA_API_KEY"),
        "Content-Type: application/json",
        "Idempotency-Key: appt-48213-confirm",
    ],
    CURLOPT_POSTFIELDS     => json_encode($payload),
]);
$response = json_decode(curl_exec($ch), true);
echo $response["status"]; // "submitted" is not delivery

Event handling

Status arrives on your webhook.

Verify the signature, deduplicate by event ID, and acknowledge quickly.

message.deliveredProposed event shape
{
  "event": "message.delivered",
  "id": "evt_01HX8Z4EXAMPLE",
  "message_id": "msg_01HX8Z3EXAMPLE",
  "channel": "sms",
  "occurred_at": "2026-03-14T10:02:15+05:30",
  "provider_status": "DELIVRD"
}

Error diagnosis

Errors tell you what to fix.

Each error has a stable code, a message and the field at fault. Retry only rate limits and server errors, reusing your idempotency key.

Email exampleProposed API example
<?php
// Proposed API — not yet operational
$payload = [
    "channel" => "email",
    "type"    => "transactional",
    "from"    => "Example App <no-reply@mail.example.com>",
    "to"      => "user@example.com",
    "subject" => "Verify your email address",
    "html"    => "<p>Confirm this address to finish signing up.</p>",
];
// POST to https://api.example.com/v1/messages with your API key