Give your code a real iPhone.

Send iMessage and SMS from real iPhones over REST. Replies come back as signed webhooks.

Hi Dana, it's Lucia's. A table for two opened up tonight. Want it?
Delivered
D
Is the table still free at 8?
Sent with POST /v1/messages · reply arrives as message.received

The Starter plan is $0. No credit card required.

Your first call

Send one message.

Set ISNAP_API_KEY, pick a line, and send. A 202 means iSnap accepted the message.

  1. Your server
    Calls POST /v1/messages with a line, a number and a body.
  2. iSnap
    Answers 202 and queues it behind the line's limits and quiet hours.
  3. The line's iPhone
    Sends iMessage, or SMS when the contact isn't on iMessage.
  4. Your webhook
    Hears message.delivered, then the reply as message.received.
npm install @isnap/sdk
send-message.ts
import { randomUUID } from 'node:crypto'
import { APIError, ISnapClient } from '@isnap/sdk'

const client = new ISnapClient({ apiKey: process.env.ISNAP_API_KEY ?? '', maxRetries: 2 })

const idempotencyKey = randomUUID() // Store it with your record of the message: reuse it to retry.

try {
  const message = await client.messages.send(
    {
      line_id: 'line_8Xk2mQ4vTn7Bw9Rz3Lc6Yp1Hd',
      to: '+14155550123',
      body: 'Hello from iSnap'
    },
    { idempotencyKey }
  )
  console.log(message.id, message.status, message.scheduled_for, message.schedule_reason)
} catch (err) {
  if (!(err instanceof APIError)) throw err
  console.error(err.status, err.code, err.message, `trace_id=${err.traceId}`, `request_id=${err.requestId}`)
  process.exitCode = 1
}
From docs.isnap.ai/quickstart#send-a-message
The API at a glance

One host. One key. JSON.

Every operation sits under one base URL and takes the same Bearer key, from any language.

api.isnap.aiOne host for every key. Call it from a server.
REST · v1
Base URLhttps://api.isnap.ai/v1
AuthAuthorization: Bearer isnap_live_…
FormatJSON in and out, snake_case fields
Other languagesPlain HTTPS (the docs show Python)
Request limit100 requests per 60 s, per network address
Message calls60 sends and lists per 60 s
RetriesIdempotency-Key on 8 write operations
Production notes

Built for retries. Honest about limits.

What your code should expect from the API, as the docs state it.

  1. Retries that never double-text
    Send an Idempotency-Key. A repeat with the same key returns the same message for at least 72 hours.
  2. One error shape
    Every error carries a code, a trace_id and a request_id. The SDK throws a typed error for each kind.
  3. Signed webhooks
    Standard Webhooks signatures: HMAC-SHA256 over the raw body, refused beyond 300 seconds of clock skew.
  4. At-least-once events
    Up to 7 attempts over about 14.5 hours, in no guaranteed order. Dedupe on event_id.
  1. Held, not dropped
    Over a line's sending limit, a message waits in the line's queue for up to 48 hours instead of failing.
  2. Quiet hours by default
    A line sends from 08:00 to 20:59 in the recipient's local time. Replies to someone who wrote in the last 24 hours skip them.
  3. No sandbox
    An isnap_test_ key uses your real lines and billing and sends real messages. Test on a number you own.
  4. 72-hour retention
    iSnap deletes each message at least 72 hours after recording it. Keep the history you need in your own store.
Questions

Developer questions.

Something else? The answer is probably in the docs, or write to support@isnap.ai.

Send your first message.

Start on the $0 Starter plan. No credit card required.