“Your agent” API
You already have an AI agent. Make it reachable on .
Verst.io gives your agent a dedicated iMessage line. Every inbound message reaches your server, signed, with the recent thread; your agent replies in the same conversation. It keeps its model and its rules: Verst.io provides the number, the transport and the safeguards.
What the API does, exactly
Every point below is described in the public developer guide.
GET /public/capabilitiesReadable capabilities
One route tells you what is available: channels, each line’s features, STOP mode, which agent replies, and the state of your endpoint. Your code reads these capabilities instead of hard-coding them.
agent_turnOne signed call per inbound message
On a line assigned to your agent, every inbound message triggers a direct call to your URL, signed like a webhook (timestamped HMAC-SHA256), with the message, the recent thread, the contact and the line.
200 { messages }A bounded synchronous reply
Your agent replies in the HTTP response body, within a bounded time. Need more time, or want to send media? Respond right away, then write through the send API. The same reply never goes out twice.
typing · read · reactionsiMessage gestures
Typing indicator “…”, marking the thread as read, and reactions, through the API, on direct iMessage threads, depending on the line features listed in the capabilities.
vk_test_…A sandbox
A test key simulates sending, delivery, read receipts and inbound messages, webhooks included. Nothing goes out. An endpoint set up with a test key is never called by a real message.
STOPSTOP handled by Verst.io
For prospecting, a STOP is an opt-out: your agent is not called for that message and any new send to that contact is refused. In assistant mode, where the person talks to an agent they turned on themselves, “stop” is a word like any other and blocking is done through the API.
How it works, in 3 steps
01. Try it in the sandbox
With a test key, read your capabilities and register your agent’s URL as its endpoint. Simulate an inbound message: your server receives a turn marked “sandbox”.
02. Answer every turn
Verify the signature on the raw body, pass the message and the thread to your model, and return its reply in the HTTP response. The guide includes a complete example in TypeScript and Python.
03. Go live
Request access, granted case by case. Verst.io assigns a dedicated line to your agent; on that line, the Verst.io agent stays silent: never two agents in the same conversation.
→ POST https://your-agent.example/verst
X-Verst-Signature: t=…,v1=…
{ "event": "agent_turn",
"payload": {
"turnId": "…", "sandbox": true,
"message": { "channel": "imessage", "text": "…" },
"contact": { "firstName": "…" },
"thread": [ … ]
} }
← 200 OK
{ "messages": [{ "text": "…" }] }The developer guide is public.
Keys, agent endpoint, signatures, sandbox and terms of use, with complete examples.
Open the developer guideComparing providers? Read “Verst.io vs. Linq”
