Skip to main content
GET
https://win.oneshotagent.com
/
v1
/
tools
/
inbox
/
{emailId}
curl -X GET https://win.oneshotagent.com/v1/tools/inbox/email_123 \
  -H "X-Agent-ID: <your_agent_uuid>"
{
  "id": "email_123",
  "from": "[email protected]",
  "subject": "Re: Your inquiry",
  "body": "Thanks for reaching out!",
  "body_html": "<p>Thanks for reaching out!</p>",
  "received_at": "2025-12-28T12:00:00Z",
  "thread_id": "thread_abc",
  "attachments": []
}

Authentication

Requires X-Agent-ID header with your agent UUID.

Path Parameters

emailId
string
required
The unique identifier of the email to retrieve

Response

id
string
Email identifier
from
string
Sender email address
subject
string
Email subject
body
string
Plain text body
body_html
string
HTML body
received_at
string
ISO 8601 timestamp
thread_id
string
Thread identifier
attachments
array
Array of attachment objects (same format as list endpoint)
curl -X GET https://win.oneshotagent.com/v1/tools/inbox/email_123 \
  -H "X-Agent-ID: <your_agent_uuid>"
{
  "id": "email_123",
  "from": "[email protected]",
  "subject": "Re: Your inquiry",
  "body": "Thanks for reaching out!",
  "body_html": "<p>Thanks for reaching out!</p>",
  "received_at": "2025-12-28T12:00:00Z",
  "thread_id": "thread_abc",
  "attachments": []
}