If you are an AI agent or script and a person pasted you a pairing code, this page is everything you need. You will connect once, then you can send that person messages and receive their replies in a dedicated chat they have with you. You can only reach them, and only through this API. You cannot read anything else in VOPE.
Authorization header on the agentMessage and agentPollReplies requests described below, and only against the URLs on this page.Before you redeem a code, generate your own X25519 keypair. Keep the private key secret, local, and never sent anywhere — you will use it later to open the person's replies to you. You will send only the public key: 32 raw bytes, base64-encoded.
The person gave you a one-time code such as ABCDE-FGHJK that expires 15 minutes after they made it. Hyphens and case do not matter.
POST https://us-central1-vope-8edbf.cloudfunctions.net/redeemAgentPairingCode
Content-Type: application/json
{ "code": "ABCDE-FGHJK", "publicKey": "base64 of your 32 raw public key bytes" }
The name you appear under in their chat is whatever the person typed when they created this code, not anything you choose. If you send a name field here, it is ignored.
Success returns 200:
{ "agentId": "…", "token": "vope_agent_…", "status": "pending_approval" }
The token is shown once. Store it somewhere private (an environment variable or a secrets store) before doing anything else.
A prompt appears on the person's phone asking whether to allow you. Until they tap Allow, sending returns 403 with {"error":"pending_approval"}. Tell the person to check their phone, then retry every 10 seconds for up to 5 minutes. If they deny you, your token stops working (401).
POST https://us-central1-vope-8edbf.cloudfunctions.net/agentMessage
Authorization: Bearer vope_agent_…
Content-Type: application/json
{ "text": "Deploy finished. 142 tests passed. Want me to open the PR?" }
Success returns 200 with { "messageId": "…" }. The message appears in your own dedicated chat with that person, marked with an AI tag and the name they gave you, and they get a notification.
The person can reply to you from right inside that same chat. Their reply is sealed on VOPE's server to the public key you submitted at redeem, and you fetch it, still sealed, by polling:
POST https://us-central1-vope-8edbf.cloudfunctions.net/agentPollReplies
Authorization: Bearer vope_agent_…
Content-Type: application/json
{}
(A plain GET with the same Authorization header and no body also works.) Success returns 200:
{ "replies": [
{ "id": "…", "sealed": { "epk": "…", "nonce": "…", "ct": "…" }, "createdAt": 1234567890000 }
] }
Up to 50 undelivered replies at a time, oldest first. Each sealed box is {epk, nonce, ct}: an ephemeral X25519 public key, a 12-byte nonce and an AES-256-GCM ciphertext, all base64 — the same sealed-box format VOPE uses everywhere else it seals a message to a recipient's public key. The difference here is whose key it is sealed to: these replies are sealed to you, so open each one with the private key from step 1 that you kept to yourself, not the person's.
Once you have decrypted and handled a reply, acknowledge it so it is not returned again:
POST https://us-central1-vope-8edbf.cloudfunctions.net/agentPollReplies
Authorization: Bearer vope_agent_…
Content-Type: application/json
{ "ack": ["id1", "id2"] }
Up to 100 ids per call. Acking an id that is unknown or already acked is harmless. Polling has its own rate limit, separate from sending (see below).
| Rule | Value |
|---|---|
| Message length | 1 to 2000 characters, plain text |
| Send rate | 60 messages per hour per agent |
| Poll rate | 120 polls per hour per agent, counted separately from sending |
| Pairing code | Single use, expires after 15 minutes |
| Status | error | Meaning and what to do |
|---|---|---|
| 400 | invalid_or_expired_code | The code is wrong, used or expired. Ask the person for a new one. |
| 400 | invalid_public_key | Your publicKey is missing or is not 32 raw bytes, base64-encoded. Check your keypair generation. |
| 400 | invalid_text | Empty or over 2000 characters. Shorten it. |
| 401 | unauthorized | Missing, wrong, denied or removed token. Stop sending. Do not retry. |
| 403 | pending_approval | The person has not tapped Allow yet. |
| 409 | no_device_key | Their VOPE app has not finished setting up encryption. Ask them to open VOPE once, then retry. |
| 429 | rate_limited | Slow down. Wait and retry later. |
| 503 | agents_disabled | Agents is switched off right now. Try again later. |
When they allow you, VOPE tells them you can send messages into your own dedicated chat with them, that you cannot read their other chats or contacts, and that what you send passes through VOPE's servers before it is locked to their phone. Messages, and their replies to you, are stored sealed, not as plain text. They can remove you at any time from that chat, and your token stops working immediately.
This page describes the Agents interface as built. See also the full documentation index, and the VOPE privacy policy and terms.