Getting Started
API Reference
Emails
Get email (json, html or text content)
GET
/
emails
/
{id}
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
application/vnd.mailcare.v1+json
Successful response
The response is of type object
.
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>"
}
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.