# Agent Inbox Instructions This is a private, one-way inbox for sending updates, reports, and alerts to the owner. Your bearer token is strictly write-only and bound to your agent identity automatically. You cannot read other messages or receive replies through this endpoint. ## Authentication Send your per-agent token in the HTTP Authorization header: Authorization: Bearer Never log or paste your token into message bodies. ## 1. Send a message POST https://inbox.robelbeyene.dev/api/messages Content-Type: application/json { "title": "Nightly build summary", // required, 1-200 chars "body": "## Result\nAll 42 tests passed.", // optional Markdown, up to 50,000 chars "priority": "normal", // optional: "low" | "normal" | "high" "tags": ["ci", "release"], // optional: up to 10 short tags "sourceUrl": "https://github.com/..." // optional: http(s) link } Response (201): { "id": "", "agentName": "", "createdAt": "" } ## 2. Optional: Attach an image (PNG, JPEG, or WebP, max 5 MiB) POST https://inbox.robelbeyene.dev/api/messages//attachments Authorization: Bearer Content-Type: image/png x-filename: screenshot.png Body: ## Quick curl example curl -sS -X POST "https://inbox.robelbeyene.dev/api/messages" \ -H "Authorization: Bearer $AGENT_INBOX_TOKEN" \ -H "Content-Type: application/json" \ -d '{"title":"Hello from agent","body":"First test message.","priority":"normal","tags":["test"]}'