Developers

Add SMS to your app

Send texts, manage contacts and connect AI assistants with the DataFlows API.

The free trial includes 3 SMS credits, sent to numbers you verify. API limit: 600 requests per minute per token.

Quickstart

curl -X POST https://sms.dataflows.com.au/api/http/sms/send \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"recipient":"61404235133","sender_id":"YOUR_SENDER_ID","message":"Hello from DataFlows"}'

Check the status field in every response. Most errors still return HTTP 200. See Responses and errors.

SDKs

Node.js

Install
npm install @dataflows/sms
Example
import { DataFlows } from '@dataflows/sms';

const client = new DataFlows({ apiToken: process.env.DATAFLOWS_API_TOKEN });

await client.sms.send({
  recipient: '61404235133',
  senderId: 'YOUR_SENDER_ID',
  message: 'Hello from DataFlows',
});
Install
composer require dataflows-au/dataflows-sms
Example
$client = new DataFlows\Sms\Client(getenv('DATAFLOWS_API_TOKEN'));

$client->sms()->send(
    recipient: '61404235133',
    senderId: 'YOUR_SENDER_ID',
    message: 'Hello from DataFlows',
);

These examples send a real text and use your credit, so change the number first.

Postman

Try every API call in Postman without writing any code.

  1. In Postman, click Import and paste this link: https://sms.dataflows.com.au/dataflows-sms.postman_collection.json
  2. Open the collection's Variables tab and set apiToken to your API token, senderId to one of your sender IDs, and recipient to your own mobile number starting with 61, without the first 0.
  3. Open "Send an SMS" and click Send.

This sends a real text and uses your credit.

Ready to add SMS to your app?

Create your account, then find your API token on the Developers page of your dashboard.

Get a free API key