Emails

Get email

GET /api/v1/emails/{emailId}

Get email

Returns an inbound email and a signed URL for downloading the email message as an EML file.

Parameters

Name In Type Description
emailId * path integer

Internal email id.

Responses

Status Schema Description
200 Email

Inbound email

401 AgentError

Missing or invalid auth

404 AgentError

Email not found

Example 200 response
{
    "id": 1,
    "conversationId": 1,
    "fromEmail": "string",
    "fromName": "string",
    "toRecipients": "string",
    "ccRecipients": null,
    "bccRecipients": null,
    "subject": "string",
    "textBody": "string",
    "strippedTextReply": "string",
    "messageId": "string",
    "postmarkMessageId": "string",
    "replyTo": "string",
    "mailboxHash": "string",
    "originalRecipient": "string",
    "tag": "string",
    "messageStream": "string",
    "date": "string",
    "receivedAt": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "downloadUrl": "string"
}
Example 401 response
{
    "error": "string",
    "message": "string",
    "issues": [
        {
            "path": [
                "string"
            ],
            "message": "string",
            "code": "string"
        }
    ]
}
Example 404 response
{
    "error": "string",
    "message": "string",
    "issues": [
        {
            "path": [
                "string"
            ],
            "message": "string",
            "code": "string"
        }
    ]
}

Previous

List emails