API Reference · v1.0.0

Android Texter API

Android Texter turns an Android phone into an SMS gateway. Messages you send through this API are delivered by the SIM in a phone you have linked to your account, from your own number, and replies are synced back and can be pushed to a webhook. There are no per-message carrier fees and no shared short codes.

Base URLhttps://androidtexter.comSwagger UI openapi.json

Quick start

  1. Install the Android Texter app on an Android phone and link it to your account.
  2. Create an API key on the API Keys page. Copy it then - it is only shown once.
  3. Send your first message:
cURL
curl -X POST "https://androidtexter.com/api/messages/send" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone": "+14155551234",
  "message": "Hello from the API!"
}'

Optional. Pasting a key rewrites every sample on this page to use it and enables the live Try it buttons on read-only endpoints. It is kept in this tab only, is never sent anywhere except https://androidtexter.com, and is forgotten when you close the tab.

Authentication

Every request is authenticated with an API key in the X-API-Key header. Dashboard-only endpoints instead take a JWT in Authorization: Bearer <token>.

  • Create a key on the API Keys page in your dashboard. The full key is shown once, at creation, and is stored only as a hash: it cannot be recovered later, so save it somewhere safe.
  • The dashboard lists only the first 10 characters of a key so you can tell them apart. That prefix is a label, not a credential, and will be rejected if you send it as a key.
  • Endpoints marked 'API Key or JWT' accept either. Endpoints marked 'JWT only' are dashboard session endpoints and are not usable with an API key.
header
X-API-Key: atx_your_key_here

Authentication

Identify the account a request belongs to. Send an API key in the X-API-Key header, or a JWT bearer token for dashboard session endpoints.

GET/api/me

Returns the authenticated user's profile and subscription info. Useful as a credential check.

JWT only
cURL
curl -X GET "https://androidtexter.com/api/me" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/me"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/me", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "user": { "id": "...", "name": "Phil", "email": "[email protected]" },
  "subscription": { "plan": "free", "status": "active" }
}

Messages

Send and read SMS through your connected Android phones.

POST/api/messages/send

Send an SMS to a phone number. Optionally choose which linked device sends it, and a future time to deliver it. A number without a country code is read in the country of the SIM sending it; pass country (ISO 3166-1 alpha-2) to read it in another country instead.

API Key or JWT

Parameters

NameInRequiredExample
phonebodyyes+14155551234
messagebodyyesHello from the API!
device_idbodynodevice UUID
scheduled_atbodyno2026-03-12T09:00:00Z
countrybodynoGB
cURL
curl -X POST "https://androidtexter.com/api/messages/send" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "phone": "+14155551234",
  "message": "Hello from the API!"
}'
Python
import requests

url = "https://androidtexter.com/api/messages/send"
headers = {"X-API-Key": "YOUR_API_KEY"}
payload = {
  "phone": "+14155551234",
  "message": "Hello from the API!"
}

resp = requests.post(url, json=payload, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/send", {
  method: "POST",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "phone": "+14155551234",
  "message": "Hello from the API!"
})
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "status": 200,
  "message": "Message queued for sending on Pixel 7",
  "message_id": "uuid",
  "device_id": "uuid",
  "device_name": "Pixel 7"
}
GET/api/messages/scheduled

List pending scheduled messages that have not been sent yet.

API Key or JWT
cURL
curl -X GET "https://androidtexter.com/api/messages/scheduled" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/scheduled"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/scheduled", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "scheduled_messages": [
    {
      "id": "uuid",
      "phone": "+14155551234",
      "body": "Reminder: appointment tomorrow!",
      "scheduled_at": "2026-03-12T09:00:00Z",
      "scheduler_status": "pending",
      "device_id": "uuid"
    }
  ]
}
Paste an API key at the top of the page to send a live request.
DELETE/api/messages/scheduled/:id

Cancel a pending scheduled message before it is sent.

API Key or JWT
cURL
curl -X DELETE "https://androidtexter.com/api/messages/scheduled/:id" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/scheduled/:id"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.delete(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/scheduled/:id", {
  method: "DELETE",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{ "message": "Scheduled message cancelled" }
GET/api/messages

List all messages, inbound and outbound, newest first. A message with a picture or video attached also carries media_url and media_type; see Pictures and video.

API Key or JWT

Parameters

NameInRequiredExample
pagequeryno1
limitqueryno50
cURL
curl -X GET "https://androidtexter.com/api/messages?page=1&limit=50" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "page": "1",
  "limit": "50"
}

resp = requests.get(url, params=params, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages?page=1&limit=50", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "messages": [
    { "id": "...", "phone": "+1...", "body": "Hello", "direction": "inbound", "created_at": "..." },
    {
      "id": "...", "phone": "+1...", "body": "Image Attached", "direction": "inbound",
      "media_url": "https://androidtexter.com/api/media/<name>.jpg?e=<expires>&s=<signature>",
      "media_type": "image/jpeg", "created_at": "..."
    }
  ],
  "page": 1,
  "limit": 50
}
Paste an API key at the top of the page to send a live request.
GET/api/messages/sent

List outbound messages only. A message with a picture or video attached also carries media_url and media_type; see Pictures and video.

API Key or JWT

Parameters

NameInRequiredExample
pagequeryno1
limitqueryno50
cURL
curl -X GET "https://androidtexter.com/api/messages/sent?page=1&limit=50" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/sent"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "page": "1",
  "limit": "50"
}

resp = requests.get(url, params=params, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/sent?page=1&limit=50", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "messages": [
    { "id": "...", "phone": "+1...", "body": "Hello", "direction": "inbound", "created_at": "..." },
    {
      "id": "...", "phone": "+1...", "body": "Image Attached", "direction": "inbound",
      "media_url": "https://androidtexter.com/api/media/<name>.jpg?e=<expires>&s=<signature>",
      "media_type": "image/jpeg", "created_at": "..."
    }
  ],
  "page": 1,
  "limit": 50
}
Paste an API key at the top of the page to send a live request.
GET/api/messages/received

List inbound messages only. A message with a picture or video attached also carries media_url and media_type; see Pictures and video.

API Key or JWT

Parameters

NameInRequiredExample
pagequeryno1
limitqueryno50
cURL
curl -X GET "https://androidtexter.com/api/messages/received?page=1&limit=50" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/received"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "page": "1",
  "limit": "50"
}

resp = requests.get(url, params=params, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/received?page=1&limit=50", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "messages": [
    { "id": "...", "phone": "+1...", "body": "Hello", "direction": "inbound", "created_at": "..." },
    {
      "id": "...", "phone": "+1...", "body": "Image Attached", "direction": "inbound",
      "media_url": "https://androidtexter.com/api/media/<name>.jpg?e=<expires>&s=<signature>",
      "media_type": "image/jpeg", "created_at": "..."
    }
  ],
  "page": 1,
  "limit": 50
}
Paste an API key at the top of the page to send a live request.
GET/api/v1/messages/history/:phone

Fetch paginated historical messages scoped to a single contact phone number. For a group conversation also pass thread_id (or thread_ref) from an inbound message, and the group's messages are returned instead. A message with a picture or video attached also carries media_url and media_type; see Pictures and video.

API Key or JWT

Parameters

NameInRequiredExample
pagequeryno1
limitqueryno50
thread_idqueryno
thread_refqueryno
cURL
curl -X GET "https://androidtexter.com/api/v1/messages/history/:phone?page=1&limit=50&thread_id=&thread_ref=" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/v1/messages/history/:phone"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "page": "1",
  "limit": "50",
  "thread_id": "",
  "thread_ref": ""
}

resp = requests.get(url, params=params, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/v1/messages/history/:phone?page=1&limit=50&thread_id=&thread_ref=", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "messages": [
    { "id": "...", "phone": "+1...", "body": "Hello", "direction": "inbound", "created_at": "..." },
    {
      "id": "...", "phone": "+1...", "body": "Image Attached", "direction": "inbound",
      "media_url": "https://androidtexter.com/api/media/<name>.jpg?e=<expires>&s=<signature>",
      "media_type": "image/jpeg", "created_at": "..."
    }
  ],
  "phone": "+1...",
  "page": 1,
  "limit": 50
}
GET/api/messages/thread

The same conversation the history endpoint returns, addressed by query parameter so a "+" in the number needs no URL encoding, and with a page cap of 5000 for reading a whole thread in one call. Prefer thread_ref when you have it. A message with a picture or video attached also carries media_url and media_type; see Pictures and video.

API Key or JWT

Parameters

NameInRequiredExample
phonequeryno+14155551234
pagequeryno1
limitqueryno200
thread_idqueryno
thread_refqueryno
cURL
curl -X GET "https://androidtexter.com/api/messages/thread?phone=+14155551234&page=1&limit=200&thread_id=&thread_ref=" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/thread"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "phone": "+14155551234",
  "page": "1",
  "limit": "200",
  "thread_id": "",
  "thread_ref": ""
}

resp = requests.get(url, params=params, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/thread?phone=+14155551234&page=1&limit=200&thread_id=&thread_ref=", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "messages": [
    { "id": "...", "phone": "+1...", "body": "Hello", "direction": "inbound", "created_at": "..." },
    {
      "id": "...", "phone": "+1...", "body": "Image Attached", "direction": "inbound",
      "media_url": "https://androidtexter.com/api/media/<name>.jpg?e=<expires>&s=<signature>",
      "media_type": "image/jpeg", "created_at": "..."
    }
  ],
  "phone": "+1...",
  "thread_ref": "uuid",
  "page": 1,
  "limit": 200
}
Paste an API key at the top of the page to send a live request.
GET/api/messages/search

Full-text search over the body of every message on the account, inbound and outbound, newest first. A message with a picture or video attached also carries media_url and media_type; see Pictures and video.

API Key or JWT

Parameters

NameInRequiredExample
qquerynoinvoice
pagequeryno1
limitqueryno50
cURL
curl -X GET "https://androidtexter.com/api/messages/search?q=invoice&page=1&limit=50" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/search"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "q": "invoice",
  "page": "1",
  "limit": "50"
}

resp = requests.get(url, params=params, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/search?q=invoice&page=1&limit=50", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "messages": [
    { "id": "...", "phone": "+1...", "body": "Your invoice", "direction": "outbound", "created_at": "..." }
  ],
  "query": "invoice",
  "total": 3,
  "page": 1
}
Paste an API key at the top of the page to send a live request.
GET/api/v1/messages/status/:id

Look up the delivery state of one message by its id, as returned by Send Message.

API Key or JWT
cURL
curl -X GET "https://androidtexter.com/api/v1/messages/status/:id" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/v1/messages/status/:id"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/v1/messages/status/:id", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{ "id": "uuid", "status": "sent", "sent_at": "..." }
GET/api/messages/conversations

A grouped list of conversations with the latest message from each phone number. Pass view to pick a folder: inbox (someone has written back), outbox (nothing has come back yet), archived, spam, or all (everything except archived and spam). The older filter parameter still works and is unchanged: filter=inbox is everything except spam, archived included, filter=spam is only spam, filter=all is everything including spam.

API Key or JWT

Parameters

NameInRequiredExample
limitqueryno50
viewquerynoall
cURL
curl -X GET "https://androidtexter.com/api/messages/conversations?limit=50&view=all" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/conversations"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "limit": "50",
  "view": "all"
}

resp = requests.get(url, params=params, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/conversations?limit=50&view=all", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "conversations": [
    {
      "thread_ref": "uuid",
      "phone": "+1...",
      "last_message": "Hey!",
      "last_direction": "inbound",
      "last_at": "...",
      "message_count": 12,
      "has_inbound": true,
      "archived": false
    }
  ]
}
Paste an API key at the top of the page to send a live request.
GET/api/messages/conversations/counts

How many conversations are in each folder. A conversation whose only message is a scheduled send that has not gone out yet is in none of them, the same as in the list itself.

API Key or JWT
cURL
curl -X GET "https://androidtexter.com/api/messages/conversations/counts" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/conversations/counts"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/conversations/counts", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "counts": { "all": 412, "inbox": 96, "outbox": 310, "archived": 6, "spam": 3 }
}
Paste an API key at the top of the page to send a live request.
POST/api/messages/conversations/archive

Put a conversation in the Archived folder, or take it out again. Archiving only changes which folder it is in: notifications still arrive, linked phones are not told, and the conversation is still returned by view=all. An incoming message un-archives it automatically. Name the conversation with thread_ref (from List Conversations), with thread_id, or with phone.

API Key or JWT

Parameters

NameInRequiredExample
thread_refbodyyesuuid, from List Conversations
phonebodyyes(instead of thread_ref) +14155551234
archivedbodyyestrue to archive, false to unarchive
cURL
curl -X POST "https://androidtexter.com/api/messages/conversations/archive" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "thread_ref": "uuid, from List Conversations",
  "phone": "(instead of thread_ref) +14155551234",
  "archived": "true to archive, false to unarchive"
}'
Python
import requests

url = "https://androidtexter.com/api/messages/conversations/archive"
headers = {"X-API-Key": "YOUR_API_KEY"}
payload = {
  "thread_ref": "uuid, from List Conversations",
  "phone": "(instead of thread_ref) +14155551234",
  "archived": "true to archive, false to unarchive"
}

resp = requests.post(url, json=payload, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/conversations/archive", {
  method: "POST",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "thread_ref": "uuid, from List Conversations",
  "phone": "(instead of thread_ref) +14155551234",
  "archived": "true to archive, false to unarchive"
})
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "success": true,
  "thread_ref": "uuid",
  "archived": true
}
GET/api/messages/conversations/archived

Every archived conversation, as identities only: the member phone numbers (comma-joined for a group), the handset thread id when one is known, and when it was archived. This is what the Android app reconciles its own archive against, and it is the endpoint to poll if you keep your own copy: unlike view=archived it is not capped at a limit and it does include conversations that are also flagged as spam.

API Key or JWT
cURL
curl -X GET "https://androidtexter.com/api/messages/conversations/archived" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/conversations/archived"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/conversations/archived", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "threads": [
    {
      "phone": "+14155551234",
      "thread_id": "42",
      "archived_at": "2026-11-01T18:04:11Z"
    }
  ]
}
Paste an API key at the top of the page to send a live request.

Devices

The Android phones linked to your account. A phone must be online to send.

GET/api/devices

Returns every device linked to your account with its online status. Use a device id to pin a send to one phone.

API Key or JWT
cURL
curl -X GET "https://androidtexter.com/api/devices" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/devices"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/devices", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "devices": [
    {
      "id": "uuid",
      "name": "Pixel 7",
      "phone_number": "+14155551234",
      "online": true,
      "last_seen": "2026-03-11T20:00:00Z"
    }
  ]
}
Paste an API key at the top of the page to send a live request.
DELETE/api/messages/thread

Permanently delete a conversation, every message in it, and the pictures in it that no other conversation uses, for the whole account. Linked phones are told to delete their copy too, by push and on their next heartbeat. Name the conversation with thread_ref (from List Conversations), or with phone. Not reversible; deleting the same conversation twice returns 404.

API Key or JWT

Parameters

NameInRequiredExample
thread_refquerynouuid
phonequeryno+14155551234
cURL
curl -X DELETE "https://androidtexter.com/api/messages/thread?thread_ref=uuid&phone=+14155551234" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/messages/thread"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {
  "thread_ref": "uuid",
  "phone": "+14155551234"
}

resp = requests.delete(url, params=params, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/messages/thread?thread_ref=uuid&phone=+14155551234", {
  method: "DELETE",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "success": true,
  "thread_ref": "uuid",
  "phone": "+14155551234",
  "messages_deleted": 42,
  "devices_notified": 1,
  "devices_pending_update": 0
}
GET/api/devices/:id

Details for one device by id.

API Key or JWT
cURL
curl -X GET "https://androidtexter.com/api/devices/:id" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/devices/:id"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/devices/:id", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{ "device": { "id": "...", "name": "...", "online": true } }

Webhooks

Get an HTTP callback the moment a reply arrives, instead of polling.

GET/api/webhooks

Returns all configured webhook endpoints.

JWT only
cURL
curl -X GET "https://androidtexter.com/api/webhooks" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/webhooks"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/webhooks", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{ "webhooks": [{ "id": "...", "url": "https://...", "events": ["message.received"], "active": true }] }
POST/api/v1/webhooks

Register a webhook URL programmatically. Returns a signing secret used to verify payloads; it is shown once.

API Key or JWT

Parameters

NameInRequiredExample
urlbodyyeshttps://your-server.com/webhook
eventsbodyyes["message.received"]
cURL
curl -X POST "https://androidtexter.com/api/v1/webhooks" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://your-server.com/webhook",
  "events": "[\"message.received\"]"
}'
Python
import requests

url = "https://androidtexter.com/api/v1/webhooks"
headers = {"X-API-Key": "YOUR_API_KEY"}
payload = {
  "url": "https://your-server.com/webhook",
  "events": "[\"message.received\"]"
}

resp = requests.post(url, json=payload, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/v1/webhooks", {
  method: "POST",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "url": "https://your-server.com/webhook",
  "events": "[\"message.received\"]"
})
});
const data = await resp.json();
console.log(data);

Example response

json
{
  "webhook": { "id": "uuid", "url": "https://...", "active": true },
  "secret": "whsec_..."
}
DELETE/api/webhooks/:id

Remove a webhook endpoint.

JWT only
cURL
curl -X DELETE "https://androidtexter.com/api/webhooks/:id" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/webhooks/:id"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.delete(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/webhooks/:id", {
  method: "DELETE",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{ "message": "Webhook deleted" }

Quick Replies

Saved message shortcuts, shared between the dashboard and the phone app.

GET/api/quick-replies

Returns all quick reply shortcuts for the authenticated user.

API Key or JWT
cURL
curl -X GET "https://androidtexter.com/api/quick-replies" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/quick-replies"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.get(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/quick-replies", {
  method: "GET",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{ "quick_replies": [{ "id": "...", "shortcut": "thanks", "body": "Thank you!", "usage_count": 5 }] }
Paste an API key at the top of the page to send a live request.
POST/api/quick-replies

Create a new quick reply shortcut.

API Key or JWT

Parameters

NameInRequiredExample
shortcutbodyyesthanks
titlebodyyesthanks
bodybodyyesThank you for your message! We'll get back to you shortly.
cURL
curl -X POST "https://androidtexter.com/api/quick-replies" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "shortcut": "thanks",
  "title": "thanks",
  "body": "Thank you for your message! We'll get back to you shortly."
}'
Python
import requests

url = "https://androidtexter.com/api/quick-replies"
headers = {"X-API-Key": "YOUR_API_KEY"}
payload = {
  "shortcut": "thanks",
  "title": "thanks",
  "body": "Thank you for your message! We'll get back to you shortly."
}

resp = requests.post(url, json=payload, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/quick-replies", {
  method: "POST",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "shortcut": "thanks",
  "title": "thanks",
  "body": "Thank you for your message! We'll get back to you shortly."
})
});
const data = await resp.json();
console.log(data);

Example response

json
{ "quick_reply": { "id": "uuid", "shortcut": "thanks", "body": "..." } }
PUT/api/quick-replies/:id

Update an existing quick reply.

API Key or JWT

Parameters

NameInRequiredExample
shortcutbodyyesthanks
titlebodyyesthanks
bodybodyyesUpdated message body
cURL
curl -X PUT "https://androidtexter.com/api/quick-replies/:id" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "shortcut": "thanks",
  "title": "thanks",
  "body": "Updated message body"
}'
Python
import requests

url = "https://androidtexter.com/api/quick-replies/:id"
headers = {"X-API-Key": "YOUR_API_KEY"}
payload = {
  "shortcut": "thanks",
  "title": "thanks",
  "body": "Updated message body"
}

resp = requests.put(url, json=payload, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/quick-replies/:id", {
  method: "PUT",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "shortcut": "thanks",
  "title": "thanks",
  "body": "Updated message body"
})
});
const data = await resp.json();
console.log(data);

Example response

json
{ "quick_reply": { "id": "...", "shortcut": "thanks", "body": "Updated message body" } }
DELETE/api/quick-replies/:id

Remove a quick reply shortcut.

API Key or JWT
cURL
curl -X DELETE "https://androidtexter.com/api/quick-replies/:id" \
  -H "X-API-Key: YOUR_API_KEY"
Python
import requests

url = "https://androidtexter.com/api/quick-replies/:id"
headers = {"X-API-Key": "YOUR_API_KEY"}

resp = requests.delete(url, headers=headers)
print(resp.json())
Node.js
const resp = await fetch("https://androidtexter.com/api/quick-replies/:id", {
  method: "DELETE",
  headers: {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});
const data = await resp.json();
console.log(data);

Example response

json
{ "message": "Quick reply deleted" }

Pictures and video

Every endpoint that returns messages returns the pictures with them. A message with an attachment carries two extra fields next to the text, media_url and media_type. media_url is an absolute HTTPS link you fetch as it stands: no API key, no Authorization header, nothing else to pass, which is what lets an assistant, a browser or an image pipeline read the picture itself.

FieldTypeMeaning
media_urlstringSigned, expiring HTTPS link to the attached picture or video. Present only on a message that has one. The signature is good for 7 days from the moment you read the message, so read the message again for a fresh link. A media_url you supplied yourself when sending an MMS is handed back unchanged.
media_typestringMIME type of the attachment, as the sending phone reported it: image/jpeg, image/png and video/mp4 are the common ones. Present whenever media_url is.

Returned by

  • GET /api/messages
  • GET /api/messages/sent
  • GET /api/messages/received
  • GET /api/messages/search
  • GET /api/messages/thread
  • GET /api/v1/messages/history/:phone
  • the message.received webhook

A picture message, as returned

json
{
  "id": "...",
  "direction": "inbound",
  "phone": "+14155551234",
  "body": "Image Attached",
  "media_url": "https://androidtexter.com/api/media/<name>.jpg?e=<expires>&s=<signature>",
  "media_type": "image/jpeg",
  "created_at": "2026-11-14T17:30:47Z"
}
  • An inbound picture sent from a handset with no caption carries whatever placeholder that phone's messaging app supplies, commonly "Image Attached", so a message whose body looks empty but has a media_url is a picture, not an empty message.
  • The conversation list (GET /api/messages/conversations) is a summary: last_message is text only and it carries no media fields. Read the thread, or the history endpoint, to get the picture.
  • Attachments are stored encrypted at rest with AES-256-GCM and are only ever served over a signed link, so a link that leaks into a log or a browser history goes stale instead of staying a key to the file.
  • To send a picture, pass media_url in the body of POST /api/messages/send or POST /api/messages/broadcast: a public HTTPS link to the image you want delivered as MMS.

Connectors and integrations

You do not have to write the HTTP call yourself. We publish and maintain a Zapier app, a Make app, an n8n community node and an MCP server, all of which wrap these same endpoints behind an API key. Each one has a help page with its action list, setup steps and the known issues, at androidtexter.com/integrations. Third parties have also built on this API without us; those get a page too, labelled as theirs, because the problems they cause are still problems our customers hit.

3 actions, 2 searches and an instant New Inbound Message trigger that fires from our signed webhook within seconds of a text arriving.

8 modules: instant and polling inbound triggers, send, broadcast, upsert contact, conversation history, devices, and a universal API Call module for anything with no module of its own.

The n8n-nodes-android-texter community node: messages, conversations, scheduled messages, contacts, devices and spam across 6 resources, plus a polling trigger. Usable as a tool by n8n's AI Agent.

Model Context Protocol server, so Claude, Cursor, Windsurf or any MCP client can send, schedule and read texts directly. It passes the API response through unchanged, so media_url is visible to the model.

ComposioBuilt by someone elseGet it

A Composio-hosted toolkit over this API, slug ANDROID_TEXTER, 11 tools, no triggers. We did not build it. Two things to know: its tools document a cursor parameter this API has never had, so an agent told to page by cursor cannot advance past the first page, and every tool publishes the same three-field output schema that names no message fields, so nothing tells the model media_url exists.

  • Every connector authenticates with an API key you create under Dashboard, Settings, API Keys, sent as the X-API-Key header. Revoking the key cuts the connector off immediately.
  • For inbound messages, prefer a webhook over polling: register one and we POST a signed message.received callback when a text arrives, carrying media_url and media_type. The Zapier and Make instant triggers are built on it.
  • Pagination is limit and page. This API has no cursor parameter and returns no next_cursor, so a client built to page by cursor will re-read the first page forever.
  • Anything with no connector can still call the API directly, or generate a client from the OpenAPI spec at /api/openapi.json.

Setup steps and known issues for each: androidtexter.com/integrations

Webhook payloads

When a message arrives on a connected device we POST a JSON payload to your configured webhook URL. Register one with Create Webhook above, or on the dashboard.

message.received

Fired when an SMS is received on any connected device. A picture or video message carries media_url and media_type as well, and device_phone is present when the receiving phone has reported its own number.

json
{
  "event": "message.received",
  "timestamp": "2026-03-11T20:26:47Z",
  "data": {
    "id": "uuid",
    "from": "+14155551234",
    "body": "Image Attached",
    "device_id": "uuid",
    "device_name": "Pixel 7",
    "device_phone": "+12485550000",
    "media_url": "https://androidtexter.com/api/media/<name>.jpg?e=<expires>&s=<signature>",
    "media_type": "image/jpeg",
    "received_at": "2026-03-11T20:26:47Z"
  }
}

Verifying signatures

Each webhook is signed with your webhook secret. Verify the X-Webhook-Signature header using HMAC-SHA256 over the raw request body, and compare with a constant-time function.

python
import hmac, hashlib

def verify_webhook(payload_bytes, signature, secret):
    expected = hmac.new(
        secret.encode(),
        payload_bytes,
        hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(f"sha256={expected}", signature)

Rate limits

Rate limits are token buckets with a sustained rate and a burst allowance, counted per API key (or per user for JWT requests), not per device or per IP.

ScopeSustainedBurstNotes
POST /api/messages/send and POST /api/messages/broadcast10 requests/second20Counted per API key, not per device. Sending from several devices on one key shares this bucket.
Everything under /api/v1/5 requests/second (300/minute)60The large burst is deliberate: polling clients bunch their requests, and a tight burst was returning 429 to callers whose average rate was well under the limit.
POST /api/auth/login, register and MFA verify3 requests/second5Counted per IP address, since there is no authenticated identity yet.

Exceeding a bucket returns 429 with { "error": "Rate limit exceeded. Try again later." }. Retry after a short back-off.

Errors

Errors are returned as JSON with an error field and a matching HTTP status.

StatusBodyMeaning
401{ "error": "Invalid API key" }The key is missing, malformed, revoked, or you sent the 10-character display prefix instead of the full key.
400{ "error": "..." }The request body failed validation. The message names the field at fault.
404{ "error": "..." }The addressed record does not exist, or does not belong to your account.
429{ "error": "Rate limit exceeded. Try again later." }You exceeded a rate limit bucket. Back off and retry.

Other ways to use this API

  • MCP server - give Claude, Cursor or any MCP client the ability to send, schedule and read SMS directly.
  • openapi.json - the machine-readable Swagger 2.0 spec, for code generation.
  • Integrations - our Zapier app, Make app and n8n node, each with setup steps and known issues, plus help with third-party tools built on this API.
  • Integration keys - where a signed-in user pastes keys for the services the dashboard itself talks to.
  • The same reference ships inside the Android app, under Menu, API Documentation.