Quickstart
All you need is a webhook: a URL that answers a POST with some text. No secret to set up, no response format to learn. This page goes from nothing to a working phone number in about 10 minutes, using curl and a one-file Node server.
Already have a webhook (n8n, Make, Zapier, Tasklet, your app)? Sign in, click New line and paste its URL. That's the whole setup; the rest of this page is the same thing with curl.
No endpoint yet, and you build with an AI tool (Lovable, Bolt, Replit, v0, Cursor, Claude, ChatGPT, Tasklet, n8n)? Let your agent set it up: copy one prompt into it and it builds and connects the endpoint for you.
You will:
- Get an API key (1 minute)
- Run a tiny webhook and expose it (3 minutes)
- Create a line (1 minute)
- Run the connection test (1 minute)
- Text it from your phone (2 minutes)
- Read the conversation back (1 minute)
Every API call uses the base URL https://silverarrows.dev/v1 and a bearer key.
1. Get an API key (1 minute)
Sign in at /account and create an API key. It starts with arrow_live_ and is shown once. Put it in your shell:
export SA_KEY="arrow_live_..."
export SA="https://silverarrows.dev/v1"
Running Silver Arrows locally in demo mode? Use these instead:
export SA_KEY="arrow_live_demoKeyForLocalUseOnly0000000000"
export SA="http://localhost:3000/v1"
2. Run a webhook (3 minutes)
We POST each incoming text to your URL as JSON, and text back whatever you answer. Plain text is fine. Save this as webhook.mjs:
// webhook.mjs: the smallest possible Silver Arrows agent. Node 18+, no dependencies.
import http from "node:http";
const PORT = Number(process.env.PORT || 4400);
http
.createServer((req, res) => {
let raw = "";
req.on("data", (c) => (raw += c));
req.on("end", () => {
const { message } = JSON.parse(raw || "{}");
res.writeHead(200, { "Content-Type": "text/plain" });
res.end(`You said: ${message?.body ?? ""}`.slice(0, 300));
});
})
.listen(PORT, () => console.log(`webhook listening on http://localhost:${PORT}`));
Run it:
node webhook.mjs
In a second terminal, give it a public HTTPS URL with any tunnel. For example:
npx cloudflared tunnel --url http://localhost:4400
# or: ngrok http 4400
Copy the https://... URL it prints. That is your webhook_url.
Your webhook can answer in any of these ways; we read whichever it is (details):
- plain text:
You said: hi - JSON with a
reply,text,message,output,responseoranswerstring:{"text": "You said: hi"} - nothing (an empty
200, or JSON like{"status": "ok"}): we send no reply now, and your agent can answer within 5 minutes throughPOST /v1/lines/:id/reply
3. Create a line (1 minute)
A line is a phone number wired to your agent: either your own number ($20/mo) or, free, our shared number plus your keyword. Keywords are 2 to 20 letters or digits and must be unique. This example starts on the shared number; see Your own number instead below.
curl -s -X POST "$SA/lines" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Echo Bot",
"keyword": "ECHOME",
"webhook_url": "https://your-tunnel.trycloudflare.com"
}'
A URL with no mode is a webhook line. Example response (201, trimmed):
{
"id": "line_8Hq2kVd0sPZx1mLw4TfR",
"name": "Echo Bot",
"keyword": "ECHOME",
"mode": "webhook",
"plan": "trial",
"status": "active",
"number_e164": "+14155550100",
"text_snippet": "Text ECHOME to +14155550100",
"sms_link": "sms:+14155550100?body=ECHOME",
"short_link": "https://silverarrows.dev/ECHOME",
"verified_at": null,
"connector": {
"webhook_url": "https://your-tunnel.trycloudflare.com",
"webhook_secret": "whsec_••••a1b2"
},
"webhook_secret": "whsec_3Jx…",
"usage": { "month": "2026-10", "replies": 0, "included": 25 }
}
Notes:
- Every POST we send is signed with
webhook_secret(X-Arrow-Signature). Checking it is optional in webhook mode; it's shown in full once, in this response. See Webhook if you want to. - On the free shared number (
"plan": "trial"),number_e164is the shared number. People reach your bot by texting your keyword to it.
Save the id from your response:
export LINE_ID="line_8Hq2kVd0sPZx1mLw4TfR"
Your own number instead
Want a number of its own from the start ($20/mo per number · registered to you · 200 replies a month, then credits (50 for $5), no keyword, no footer)? Send the same request with plan and, the first time, your details (US carriers require the name, mobile and address of whoever runs a number; no EIN):
{
"name": "Echo Bot", "keyword": "ECHOME", "webhook_url": "https://your-tunnel.trycloudflare.com", "plan": "line",
"registration": {
"contact_first_name": "Ada", "contact_last_name": "Lovelace", "contact_email": "ada@example.com",
"mobile": "+14155550123", "street": "1 Market St", "city": "San Francisco", "region": "CA",
"postal_code": "94105", "use_case": "Answers questions about my product by text."
}
}
Without them you get 400 registration_required listing the missing fields. The response is {"line": {…}, "checkout_url": "https://checkout.stripe.com/…"}. Open checkout_url to start the free month (a card is required), and the line moves to its own number; use line.id as LINE_ID. Until you pay it answers on the shared number with its keyword, and if you never check out it simply stays a free line.
4. Run the connection test (1 minute)
This sends a synthetic inbound text through the same path a real one takes (POST to your webhook, our formatting) without sending an SMS.
curl -s -X POST "$SA/lines/$LINE_ID/test" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{"body": "hello"}'
Example response:
{
"ok": true,
"reply": "You said: hello",
"latency_ms": 212,
"error": null,
"warnings": [],
"outcome": "reply",
"verified_at": "2026-10-05T18:01:00.000Z"
}
If it fails, ok is false and error gives a plain-English reason, such as "Your webhook returned 500" or "Your webhook didn't answer within 10 seconds". The usual fix: the tunnel URL changed.
Running Silver Arrows locally? Point webhook_url at http://localhost:4400 instead of a tunnel (demo mode allows localhost), and fake the texts in step 5 with APP_URL=http://localhost:3000 scripts/fake-inbound.sh ECHOME followed by scripts/fake-inbound.sh "is this thing on".
5. Text it (2 minutes)
From your phone, text your keyword to the number:
You: ECHOME
Bot: Echo Bot via Silver Arrows: Thanks for texting! Msg & data rates may apply. Msg frequency varies. Reply HELP for help, STOP to opt out. Info: silverarrows.dev/ECHOME
You: is this thing on
Bot: You said: is this thing on Reply STOP to opt out.
Sent via Silver Arrows
Texting the keyword opts you in: we send the opt-in confirmation (plus your line's welcome text, if you set one). The keyword itself never reaches your agent; your next text does. If your agent takes more than 3 seconds, the texter first gets "Echo Bot reacted with 👀"; you can turn that off in reply settings. The first agent reply each day carries "Reply STOP to opt out." Free lines also carry "Sent via Silver Arrows". The link opens your line's program page on our site. The opt-in confirmation, HELP reply and a few others can be in your own words: see Customize what texters see.
6. Read the conversation (1 minute)
curl -s "$SA/lines/$LINE_ID/conversations?since=2026-10-01T00:00:00Z" \
-H "Authorization: Bearer $SA_KEY"
Example response (trimmed):
{
"data": [
{
"id": "conv_Q2m9VtX0aLr7Bc1nYp4e",
"sender_id": "snd_3f9a1c0b7e2d4a6b8c1d2e3f",
"sender_display": "•••-•••-1234",
"opted_out": false,
"last_message_at": "2026-10-05T18:02:11.000Z",
"messages": [
{
"id": "msg_a1",
"direction": "in",
"body": "is this thing on",
"created_at": "2026-10-05T18:02:10.000Z",
"in_reply_to": null,
"kind": null
},
{
"id": "msg_a2",
"direction": "out",
"body": "You said: is this thing on Reply STOP to opt out.\nSent via Silver Arrows",
"created_at": "2026-10-05T18:02:11.000Z",
"in_reply_to": "msg_a1",
"kind": "agent"
}
]
}
]
}
The same transcript is on your dashboard at /lines/<id>.
Next steps
- Get your own number: move the line to Arrow from
/lines/<id>($20/mo per number · registered to you · 200 replies a month, then credits (50 for $5)). You get a dedicated number, no footer, and your existing conversations move with you. See Pricing. - Replace the echo with your real agent. Everything your webhook receives and can return is in Webhook.
- Want the stricter contract with signature checks and a retry? See Relay.
- Agent takes longer than 10 seconds? Answer nothing now and reply later. See Async and scheduled.
- Your agent is an OpenAI Prompt or a Claude system prompt? Paste the key instead: OpenAI & Anthropic keys.
- Every endpoint and field: API reference.