uSend Docs
API endpoints

Received emails

List and read emails received on your domains.

Received emails are available under /inbound/emails. See Receiving emails to set up receiving.

List received emails

GET /inbound/emails

Returns received emails, newest first. Paginated.

NameTypeRequiredDescription
limitintegerNo1 to 100. Default 50.
afterstringNoReturn emails older than this ID.
beforestringNoReturn emails newer than this ID.
tostringNoOnly email received by this address. A full address ([email protected]) matches exactly, ignoring case and any display name; other text matches every recipient that contains it.
fromstringNoOnly email from a sender that contains this text, such as google.com.
searchstringNoOnly email whose subject or sender contains this text.
groupstringNoOnly email received by the addresses of a group made on the dashboard's Inbound page.

The filters can be combined: [email protected]&search=google returns the DMARC reports Google sent to that address.

cURL
curl "https://api.usend.et/inbound/emails?limit=10" \
  -H "Authorization: Bearer us_123456789"
Response
{
  "object": "list",
  "data": [
    {
      "object": "inbound_email",
      "id": "a39999a6-88e3-48b1-888b-beaabcde1b33",
      "from": "Ann <[email protected]>",
      "to": ["[email protected]"],
      "subject": "Question about my order",
      "created_at": "2026-10-11T08:30:12.402Z",
      "attachment_count": 1,
      "read": false
    }
  ],
  "has_more": false
}

Retrieve a received email

GET /inbound/emails/{id}

NameTypeRequiredDescription
idstringYesThe received email ID (path).
cURL
curl https://api.usend.et/inbound/emails/a39999a6-88e3-48b1-888b-beaabcde1b33 \
  -H "Authorization: Bearer us_123456789"
Response
{
  "object": "inbound_email",
  "id": "a39999a6-88e3-48b1-888b-beaabcde1b33",
  "from": "Ann <[email protected]>",
  "to": ["[email protected]"],
  "subject": "Question about my order",
  "created_at": "2026-10-11T08:30:12.402Z",
  "attachment_count": 1,
  "read": true,
  "cc": [],
  "reply_to": [],
  "html": "<p>Hi, where is order #1042?</p>",
  "text": "Hi, where is order #1042?",
  "headers": { "Message-ID": "<[email protected]>", "Date": "Sun, 11 Oct 2026 08:30:10 +0000" },
  "attachments": [
    { "id": "2a0c9ce0-3112-4728-976e-47ddcd16a318", "filename": "screenshot.png", "content_type": "image/png", "size": 182044 }
  ]
}

headers maps each header name to its value (the topmost one when a header appears several times). Empty cc and reply_to may be omitted.

Retrieve the raw message

GET /inbound/emails/{id}/raw

Returns the original message as message/rfc822, downloaded as <id>.eml.

NameTypeRequiredDescription
idstringYesThe received email ID (path).
cURL
curl -o message.eml https://api.usend.et/inbound/emails/a39999a6-88e3-48b1-888b-beaabcde1b33/raw \
  -H "Authorization: Bearer us_123456789"

Download an attachment

GET /inbound/emails/{id}/attachments/{attachment_id}

Returns the attachment's content directly (not a JSON object), as a file download. Attachment IDs are listed in attachments of the received email and in the email.received webhook.

NameTypeRequiredDescription
idstringYesThe received email ID (path).
attachment_idstringYesThe attachment ID (path).
cURL
curl -o screenshot.png \
  https://api.usend.et/inbound/emails/a39999a6-88e3-48b1-888b-beaabcde1b33/attachments/2a0c9ce0-3112-4728-976e-47ddcd16a318 \
  -H "Authorization: Bearer us_123456789"

Read state

read is true once someone in your organization opened the message in the dashboard (or marked it read there). It is shared by the whole organization. Reading a message with an API key does not change it.