Skip to content

Platforms

If you run a platform where people build agents (an agent builder, a no-code AI tool, a SaaS product with an assistant per customer), the platform API gives each of your users' agents its own US phone number. You provision it with one API call; your users never deal with Silver Arrows, and their texters see your bot's name.

What changes compared with a single line:

  • API only. No wizard and no keyword. POST /v1/platform/lines with your own id for the end user returns a line with a dedicated local number from our pre-registered pool.
  • Your bot's name. The opt-in confirmation a texter gets starts with the name you give the line instead of "Silver Arrows:".
  • One contract. You pay us once a month on your platform's contract. Your end users never see a Silver Arrows bill.
  • Same rules. Every platform line follows the same consent, STOP/HELP, content and rate rules as any other line (limits and compliance). Nothing answers texts until a connection test passes.
export SA="https://silverarrows.dev/v1"
export PKEY="arrow_live_…"   # a platform key (see step 2)

1. Apply

Apply from silverarrows.dev/platforms while signed in, or with any API key on your account:

curl -X POST "$SA/platform/apply" \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{
    "company": "Agentville",
    "website": "https://agentville.example",
    "use_case": "Our users build booking agents for their salons; each salon wants a number its clients can text.",
    "expected_numbers": 250
  }'
# 201 {"platform": {"id": "plat_…", "name": "Agentville", "status": "applied", "contract": null, …}}

GET $SA/platform/apply shows your application's status. We review every platform by hand and agree the contract with you: a monthly rate for each active number, a per-reply rate, and optionally included replies and a monthly minimum. You'll get an email when it's approved.

Until then, every /v1/platform endpoint answers 403 platform_not_approved.

2. Create a platform key

Once approved, go to Account → API keys, pick the Platform scope and create a key. Platform keys only work on /v1/platform/… (and on the per-line endpoints of your own platform's lines); your retail keys keep working for any lines you run yourself. Using a retail key on /v1/platform gives 403 platform_key_required.

curl "$SA/platform" -H "Authorization: Bearer $PKEY"
# {"id": "plat_…", "status": "approved",
#  "contract": {"currency": "usd", "rate_per_number_usd": …, "rate_per_reply_usd": …, "included_replies": …, "minimum_monthly_usd": …, …},
#  "webhook": {"url": null, "secret": null, "events": ["line.went_live", "line.test_failed", "line.paused", "number.released"]}}

3. Create a line for an end user

curl -X POST "$SA/platform/lines" \
  -H "Authorization: Bearer $PKEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: create-user_8412" \
  -d '{
    "name": "Salon Helper",
    "external_customer_id": "user_8412",
    "mode": "relay",
    "webhook_url": "https://api.yourplatform.com/agents/8412/sms",
    "metadata": {"workspace": "ws_19", "tier": "pro"},
    "auto_test": true
  }'
  • name is what texters see. Letters, digits, spaces and . , ' & ( ) ! ? + - _ / # @, up to 60 characters, no links.
  • external_customer_id is your id for the end user (up to 200 visible ASCII characters). Filter and report by it.
  • mode is webhook (webhook_url: your or your user's endpoint, any reply format), relay (the same, with the strict signed {"reply"} contract), anthropic (api_key, system_prompt) or openai (api_key, prompt_id), with the same fields as POST /v1/lines. Anthropic and OpenAI lines always run on the customer's own API key; Silver Arrows never runs a model on its own. You can also set the line's texter messages here (messages).
  • keyword is optional. Without one we generate a placeholder and the line's program page is silverarrows.dev/p/<id>; with one it is silverarrows.dev/<KEYWORD>. Either way that page, on our site, is what the line's opt-in confirmation and HELP reply link to.
  • public_description (≤ 280 characters, moderated) and owner_url (https only) are optional and show on that page.
  • metadata is a small flat map (up to 20 keys) you get back on every read. Texters never see it.
  • auto_test: true runs the connection test right away (step 4). test_message overrides its text.
  • Idempotency-Key makes retries safe: the same key returns the first line instead of taking a second number.

The response (201) is the line, plus webhook_secret once when we generated one (relay), and test when you asked for auto_test:

{
  "id": "line_…",
  "name": "Salon Helper",
  "plan": "platform",
  "status": "active",
  "platform_id": "plat_…",
  "external_customer_id": "user_8412",
  "metadata": { "workspace": "ws_19", "tier": "pro" },
  "number_e164": "+14155550123",
  "text_snippet": "Text +14155550123",
  "sms_link": "sms:+14155550123",
  "live": true,
  "verified_at": "2026-10-06T17:02:11.000Z",
  "short_link": "https://silverarrows.dev/p/4a1c9e07b2d3f61",
  "opt_in_confirmation": "Salon Helper 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/p/4a1c9e07b2d3f61",
  "disclosure": {
    "url": "https://silverarrows.dev/p/4a1c9e07b2d3f61",
    "text": "By texting this number you agree to receive AI-generated reply messages from Silver Arrows LLC. Msg & data rates may apply. Message frequency varies. Reply STOP to opt out, HELP for help."
  },
  "webhook_secret": "whsec_…",
  "test": { "ok": true, "reply": "Hi! I'm your salon's assistant.", "latency_ms": 412, "outcome": "reply", "warnings": [] }
}

The number comes from our pool, so the response is instant. If the pool is empty you get 503 pool_empty; we're alerted and add numbers.

4. Test, then it's live

Nothing answers texts until a connection test passes: we send a synthetic text through the line's agent and check the answer, without sending any SMS. Texts to an untested line are logged and get no reply.

curl -X POST "$SA/platform/lines/line_…/test" -H "Authorization: Bearer $PKEY" -d '{}'
# {"ok": true, "reply": "…", "latency_ms": 380, "outcome": "reply", "warnings": [], "verified_at": "…"}

The first pass fires line.went_live; a failure fires line.test_failed with a plain-English error ("Your endpoint returned 500"). Changing the line's agent (webhook_url, mode, keys) means it has to pass again.

5. Hand out the number

Show the number (number_e164, sms_link) in your product next to the disclosure. This is a carrier requirement: wherever the number appears, show disclosure.text or link to disclosure.url (the line's Silver Arrows program page, its short_link: the number, who operates the program, the disclosure, our privacy policy and terms). The person texting first is the consent; you can't add people, import contacts or text anyone first.

What texters see:

  • Their first text gets the opt-in confirmation: your line's name "via Silver Arrows", the carrier elements, and the line's program link (above). Every line is a Silver Arrows LLC program under our one carrier registration; your platform is our customer, not a sender.
  • Then your agent's replies. The first reply each day ends with "Reply STOP to opt out." No other footer.
  • HELP is answered with your line's name, Silver Arrows LLC, our support address and the program link; STOP by the carrier layer for every line. HELP and STOP never reach your agent.

6. Texts and replies

Your agent gets texts exactly as described for its mode: webhook or relay payloads, or your own Anthropic or OpenAI key. The per-line endpoints work under your platform path with your platform key:

Endpoint Same as
GET /platform/lines/:id/conversations GET /lines/:id/conversations
GET /platform/lines/:id/logs GET /lines/:id/logs
GET /platform/lines/:id/stats GET /lines/:id/stats
POST /platform/lines/:id/reply POST /lines/:id/reply
POST /platform/lines/:id/request_schedule_consent POST /lines/:id/request_schedule_consent
POST /platform/lines/:id/send POST /lines/:id/send
GET /platform/lines/:id/schedule_consents GET /lines/:id/schedule_consents

/v1/lines/:id/… also accepts your platform key for your own lines. Another platform's line is always a 404.

7. Manage lines

# Every line for one end user
curl "$SA/platform/lines?external_customer_id=user_8412" -H "Authorization: Bearer $PKEY"
# {"data": [ … ], "has_more": false, "next_cursor": null}

# Pause (texters get silence, or the line's paused_text), resume, rename, retag
curl -X PATCH "$SA/platform/lines/line_…" -H "Authorization: Bearer $PKEY" \
  -d '{"status": "paused", "metadata": {"tier": "free"}}'

# Delete: the number goes back to our pool (cooling for 60 days) and billing for it stops that day
curl -X DELETE "$SA/platform/lines/line_…" -H "Authorization: Bearer $PKEY"
# {"id": "line_…", "status": "deleted", "released_number": "+14155550123"}

GET /platform/lines takes external_customer_id, status (active or paused), limit (up to 500, default 100) and cursor (the previous page's next_cursor). PATCH takes everything PATCH /v1/lines/:id does, plus external_customer_id and metadata.

8. Usage and invoices

curl "$SA/platform/usage?month=2026-10" -H "Authorization: Bearer $PKEY"
{
  "month": "2026-10",
  "current": true,
  "period": { "start": "2026-10-01T00:00:00.000Z", "end": "2026-11-01T00:00:00.000Z", "as_of": "2026-10-16T12:00:00.000Z" },
  "lines": [{ "line_id": "line_…", "external_customer_id": "user_8412", "number_days": 16, "replies": 900, "…": "…" }],
  "customers": [{ "external_customer_id": "user_8412", "lines": 2, "number_days": 32, "replies": 900 }],
  "totals": { "lines": 3, "active_lines": 2, "number_days": 38, "numbers_billed": 1.2258, "replies": 1200, "included_replies": 1000, "billable_replies": 200 },
  "invoice": { "amount_cents": 1135, "items": [{ "kind": "numbers", "description": "…", "amount_cents": 735 }, { "kind": "replies", "description": "…", "amount_cents": 400 }] },
  "projected": { "amount_cents": 2312, "…": "…" },
  "contract": { "currency": "usd", "…": "…" }
}

How the month is billed, in arrears, on the 1st:

  • Numbers: each line counts for every UTC day (or part of one) it holds its number in the month, from creation until it's deleted. Number-months = those days ÷ days in the month, times your per-number rate. A line created on the 20th of a 30-day month bills 11/30 of a month.
  • Replies: replies sent by all your lines in the month, minus your included replies, times your per-reply rate. A reply is one text we send on an agent's behalf; inbound texts and our own platform texts (opt-in confirmation, HELP, STOP) are free.
  • Minimum: if your contract has a monthly minimum, a month it covers is billed at least that much.

The invoice comes from Stripe, by email, payable within 30 days. GET /v1/platform/invoices lists them with links to Stripe's hosted invoice. projected (this month only) assumes every number you hold now stays to the month's end and replies continue at this month's pace.

9. Webhooks

Set one URL for your platform's events. The secret is returned once (and again whenever you rotate it):

curl -X PATCH "$SA/platform" -H "Authorization: Bearer $PKEY" \
  -d '{"webhook_url": "https://api.yourplatform.com/arrow/events"}'
# {…, "webhook": {"url": "https://…", "secret": "whsec_••••a1b2", …}, "webhook_secret": "whsec_…"}
# Rotate: {"rotate_webhook_secret": true}. Remove: {"webhook_url": null}.

We POST JSON, signed like relay: X-Arrow-Signature: sha256=<HMAC-SHA256 of the raw body with your secret>. X-Arrow-Event is the type and X-Arrow-Delivery the event id (a retry carries the same id). Any 2xx is success; we wait 5 seconds and retry once.

{
  "id": "evt_…",
  "type": "line.went_live",
  "created_at": "2026-10-06T17:02:11.000Z",
  "platform_id": "plat_…",
  "data": { "line_id": "line_…", "external_customer_id": "user_8412", "number_e164": "+14155550123" }
}
Event When Extra data
line.went_live The line passed its first connection test number_e164, verified_at
line.test_failed A connection test failed error (plain English)
line.paused The line stopped answering: you paused it (reason: "platform") or Silver Arrows support did (reason: "platform_suspended") reason
number.released The line was deleted and its number went back to the pool number_e164

Verify the signature before trusting the body:

import { createHmac, timingSafeEqual } from "node:crypto";

function verify(rawBody, header, secret) {
  const expected = "sha256=" + createHmac("sha256", secret).update(rawBody).digest("hex");
  return header && expected.length === header.length && timingSafeEqual(Buffer.from(expected), Buffer.from(header));
}

Errors and limits

Errors use the same envelope as the rest of the API. Platform-specific codes:

Status code When
401 unauthorized No key, or an unknown or revoked one. Dashboard sessions don't work on /v1/platform.
403 platform_not_approved The account hasn't applied, or isn't approved yet.
403 platform_key_required A retail key on /v1/platform. Create a platform key.
403 retail_key_required A platform key on GET/POST /v1/lines. Use /v1/platform/lines.
403 platform_suspended Silver Arrows support suspended the platform; every line is paused.
404 not_found The line isn't one of your platform's lines.
503 pool_empty No dedicated numbers free right now.

Limits, per platform key and per account: 600 requests a minute, 500 new lines an hour, 1,000 connection tests an hour. Past one you get 429 rate_limited with Retry-After.