Async and scheduled
Two ways to send a text other than an immediate reply: answer later (async), or send a scheduled message to someone who opted in.
Both trace back to something the texter did. There is no way to text someone who hasn't texted you, and no send-to-many anywhere in the API.
Async replies
If your agent can't answer inside the 10-second timeout, or your platform can't respond inline (n8n, Make, Zapier, Tasklet), answer later. On a webhook line, responding with nothing (an empty 200, {"reply": null} or any JSON without a reply) already means "later"; on a relay line, return __async__ as below.
1. Return async
From your relay endpoint, respond right away with:
{ "reply": "__async__" }
We send nothing yet and keep the message open for your answer.
2. POST the reply
curl -s -X POST "https://silverarrows.dev/v1/lines/$LINE_ID/reply" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{
"conversation_id": "conv_Q2m9VtX0aLr7Bc1nYp4e",
"body": "Your card today is The Star: hope after a hard stretch.",
"in_reply_to": "msg_Zk3pW8qNc1Vb6Lr0Ta9y"
}'
| Field | Required | Notes |
|---|---|---|
conversation_id |
yes | From the relay payload. |
body |
yes | Plain text. Same formatting rules as any reply (320 characters, markdown stripped, footers added). |
in_reply_to |
recommended | The inbound message.id you're answering. |
Reply windows
- With
in_reply_to: accepted if that inbound arrived within the last 5 minutes. - Without
in_reply_to: accepted only within 60 seconds of the texter's latest inbound.
Outside the window you get a 403:
{
"error": {
"code": "outside_reply_window",
"message": "Replies must answer an inbound text: within 60 seconds, or within 5 minutes when you pass in_reply_to."
}
}
Other 403 codes on /reply: opted_out, rate_limited (30 replies per texter per hour), over_limit (monthly cap), line_inactive, blocked_content.
When an agent answers asynchronously, or takes longer than 3 seconds, the line first sends an SMS such as “SF311 reacted with 👀” so the texter knows the message was seen. Fast replies skip it. Owners can turn this off in reply settings.
Scheduled messages
The texter asks for a recurring message ("send me a card every morning"), says YES to our prompt, and from then on your agent may send them at most one non-reply text per calendar day.
You own the schedule and the content. We own the consent gate. We never run cron for you: your scheduler (a Tasklet schedule, an n8n Schedule Trigger, a cron job in your app) decides when and what to send.
1. Ask for consent
Only when the texter asks for recurring messages. Three ways, depending on your mode:
Relay: add request_schedule_consent to your reply.
{ "reply": "Sure, I'll send your card every morning at 8.", "request_schedule_consent": true }
Webhook lines: the same request_schedule_consent: true next to your reply. Anthropic lines: the model has a built-in request_schedule_consent() tool and calls it itself when the texter asks.
Any mode, via the API:
curl -s -X POST "https://silverarrows.dev/v1/lines/$LINE_ID/request_schedule_consent" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{"conversation_id": "conv_Q2m9VtX0aLr7Bc1nYp4e", "in_reply_to": "msg_Zk3pW8qNc1Vb6Lr0Ta9y"}'
2. The texter says YES
We text them exactly this:
Reply YES to get scheduled texts from this line. Max 1/day. Reply STOP any time.
When they reply YES, their consent becomes active and we confirm. Their YES never reaches your agent. Nobody can create consent on someone else's behalf, including you.
3. Send
curl -s -X POST "https://silverarrows.dev/v1/lines/$LINE_ID/send" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{
"conversation_id": "conv_Q2m9VtX0aLr7Bc1nYp4e",
"body": "Good morning. Today: the Three of Cups. Who would you like to celebrate with this week?"
}'
Rules:
- At most one scheduled text per texter per calendar day.
- Same length and content rules as replies. We append "Reply STOP to opt out." to every scheduled text.
- One conversation per call. There is no bulk send.
If the send isn't allowed you get a 403 with a reason:
error.code |
Meaning |
|---|---|
no_consent |
This texter hasn't replied YES on this line. |
daily_limit |
They already got a scheduled text today. |
paused |
They texted PAUSE, or went 30 days without texting. |
opted_out |
They texted STOP. |
You may also see schedule_disabled (the owner turned scheduled texts off for the line), line_inactive or blocked_content.
PAUSE, STOP and the 30-day check-in
- PAUSE: stops scheduled texts, keeps normal replies.
- STOP: ends everything on the line, replies and scheduled texts, until they text START.
- 30 days with no inbound from a texter auto-pauses their scheduled texts, and we send one message:
Still want these? Reply YES.
A YES reactivates them.
See who has opted in
curl -s "https://silverarrows.dev/v1/lines/$LINE_ID/schedule_consents" \
-H "Authorization: Bearer $SA_KEY"
{
"data": [
{
"conversation_id": "conv_Q2m9VtX0aLr7Bc1nYp4e",
"sender_id": "snd_3f9a1c0b7e2d4a6b8c1d2e3f",
"status": "active",
"last_scheduled_sent_at": "2026-10-05T15:00:02.000Z",
"last_inbound_at": "2026-10-04T08:00:01.000Z"
}
]
}
status is pending, active, paused or revoked. This endpoint is read-only. Have your scheduler loop over the active ones and call /send for each, once a day.
Turning it off
Owners can disable scheduled texts for a line. The built-in tool disappears and /send returns schedule_disabled:
curl -s -X PATCH "https://silverarrows.dev/v1/lines/$LINE_ID" \
-H "Authorization: Bearer $SA_KEY" \
-H "Content-Type: application/json" \
-d '{"schedule_enabled": false}'