v49

latestOpenAPI 3.1.0Proprietaryraw.githubusercontent.com2026-02-185890337.1 KB
Emails

Get email details

Retrieve detailed information about a specific email including delivery status, timestamps, and optionally the email content.

Use the expand parameter to include additional data like the HTML/text body, headers, or delivery attempts.

get/emails/{emailId}

Path parameters

emailIdstring required

The email identifier (token returned from send response)

Query parameters

expandstring
Example:full

Comma-separated list of fields to include:

  • full - Include all expanded fields in a single request
  • content - HTML and plain text body
  • headers - Email headers
  • deliveries - Delivery attempt history
  • activity - Opens and clicks tracking data
  • attachments - File attachments with content (base64 encoded)
  • raw - Complete raw MIME message (base64 encoded)

Response

Email details

successtrue required

Example response

{
  "data": {
    "id": "aBc123XyZ456",
    "deliveries": [
      {
        "id": "456",
        "status": "sent",
        "details": "Message for user@example.com accepted by 1.2.3.4:25 (mx.example.com)",
        "output": "250 2.0.0 OK 1234567890 abc123 - gsmtp",
        "code": 250,
        "classification": "mailbox_full",
        "classificationCode": 20,
        "smtpEnhancedCode": "5.2.2",
        "remoteHost": "mx.example.com"
      }
    ],
    "activity": {
      "opens": [
        {
          "ipAddress": "203.0.113.42",
          "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
        }
      ],
      "clicks": [
        {
          "url": "https://example.com/product",
          "ipAddress": "203.0.113.42",
          "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)"
        }
      ]
    },
    "attachments": [
      {
        "filename": "invoice.pdf",
        "contentType": "application/pdf",
        "size": 45678,
        "hash": "a1b2c3d4e5f6...",
        "data": "JVBERi0xLjQKJeLjz9MKMyAwIG9i..."
      }
    ],
    "rawMessage": "TWltZS1WZXJzaW9uOiAxLjAKQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PXV0Zi04..."
  },
  "meta": {
    "requestId": "req_V1StGXR8_Z5jdHi6"
  }
}