GET
/
emails
curl --request GET \
  --url https://mailcare.io/api/teams/{teamId}/emails \
  --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>"
        }
      ]
    }
  ],
  "links": {
    "first": "<string>",
    "last": "<string>",
    "prev": "<string>",
    "next": "<string>"
  },
  "meta": {
    "current_page": 123,
    "from": 123,
    "last_page": 123,
    "path": "<string>",
    "per_page": 123,
    "to": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page
integer
default:1
limit
integer
default:25
inbox
string
sender
string
subject
string
since
string
until
string
unread
boolean
favorite
boolean

Response

200 - application/vnd.mailcare.v1+json

Successful response

The response is of type object.