Skip to main content
GET
/
emails
/
{id}
Get email (json, html or text content, raw)
curl --request GET \
  --url https://mailcare.io/api/teams/{teamId}/emails/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "<string>",
    "sender": {
      "id": "<string>",
      "display_name": "<string>",
      "email": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "inbox": {
      "id": "<string>",
      "display_name": "<string>",
      "email": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "carbon_copies": [
      {
        "display_name": "<string>",
        "email": "<string>"
      }
    ],
    "subject": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "read": "2023-11-07T05:31:56Z",
    "favorite": true,
    "has_html": true,
    "has_text": true,
    "size_in_bytes": 123,
    "attachments": [
      {
        "id": "<string>",
        "email_id": "<string>",
        "headers_hashed": "<string>",
        "file_name": "<string>",
        "content_type": "<string>",
        "size_in_bytes": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "size_for_human": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

Successful response. The response format depends on the Accept header you send in the request.

Successful response in JSON format. Set Accept: application/vnd.mailcare.v1+json in your request.

data
object