POST
/
v1
/
mail
/
messages
curl --request POST \
  --url http://localhost:8000/api/v1/mail/messages \
  --header 'Content-Type: application/json' \
  --data '{
  "subject": "<string>",
  "body": "<string>",
  "html_body": "<string>",
  "thread": "<string>",
  "cc": [
    {
      "email": "<string>",
      "name": "<string>"
    }
  ],
  "bcc": [
    {
      "email": "<string>",
      "name": "<string>"
    }
  ],
  "from": [
    {
      "email": "<string>",
      "name": "<string>"
    }
  ],
  "to": [
    {
      "email": "<string>",
      "name": "<string>"
    }
  ],
  "reply_to": [
    {
      "email": "<string>",
      "name": "<string>"
    }
  ],
  "in_reply_to": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "body": "<string>",
    "html_body": "<string>",
    "user_id": "<string>",
    "date": "<string>",
    "snippet": "<string>",
    "subject": "<string>",
    "thread_id": "<string>",
    "starred": true,
    "unread": true,
    "cc": [
      {
        "email": "<string>",
        "name": "<string>"
      }
    ],
    "bcc": [
      {
        "email": "<string>",
        "name": "<string>"
      }
    ],
    "from": [
      {
        "email": "<string>",
        "name": "<string>"
      }
    ],
    "reply_to": [
      {
        "email": "<string>",
        "name": "<string>"
      }
    ],
    "labels": [
      "<string>"
    ],
    "in_reply_to": "<string>"
  }
}

Query Parameters

raw
boolean

Include raw response. When you want more data from the source

Body

application/json
subject
string
required
body
string
html_body
string
thread
string
cc
object[]
bcc
object[]
from
object[]
to
object[]
reply_to
object[]
in_reply_to
string

Response

201 - application/json
data
object
required