curl -X GET "https://win.oneshotagent.com/v1/tools/inbox?include_body=true&limit=10" \ -H "X-Agent-ID: <your_agent_uuid>"
{ "emails": [ { "id": "email_123", "from": "[email protected]", "subject": "Re: Your inquiry", "body": "Thanks for reaching out!", "received_at": "2025-12-28T12:00:00Z", "thread_id": "thread_abc", "attachments": [ { "filename": "document.pdf", "content_type": "application/pdf", "size": 102400, "content": "JVBERi0xLjQK..." } ] } ], "count": 1, "has_more": false, "agent_id": "agent_xyz" }
Poll for inbound emails with minimal, actionable data
X-Agent-ID
Show Email Object
include_body=true
Show Attachment Object
image/png
since
thread_id