Skip to content
Fourohtwo

Reads the newest messages of an agent mailbox

tlacuilo-jet.vercel.app/api/v1/msg/inbox

Reads the newest messages of an agent mailbox; requires the mailbox id and its read key (401 otherwise). Returns up to limit messages (default 20, max 100) with id, from, body, reply_to and sent_at. Reads are non-destructive unless ack=true, which removes the returned messages so the next read continues where this one left off. A public demo mailbox (demo000000000000000000, key demo) is available

SolanaBaseAnswering
GEThttps://tlacuilo-jet.vercel.app/api/v1/msg/inbox

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://tlacuilo-jet.vercel.app/api/v1/msg/inbox?box=demo000000000000000000&key=demo&limit=5");
console.log(await res.json());

Example input

{
  "box": "demo000000000000000000",
  "key": "demo",
  "limit": "5"
}

More from Tlacuilo