boundry.
RegionSydney, Australia
Documentation/sendEmail
POST/emails

sendEmail

Authentication

This operation does not declare an authentication requirement in the API contract.

Headers

NameTypeDescription
Idempotency-Keystring

Request body (required)

FieldTypeDescription
fromrequiredstring

Example: "Acme <hello@example.com>".

torequiredstring (email) | array

Option 1string (email)

One permitted response shape.

Option 2array

One permitted response shape.

ccarray

bccarray

reply_toarray

subjectrequiredstring

htmlstring

textstring

headersobject

tagsarray

namerequiredstring

valuerequiredstring

scheduled_atstring (date-time)

attachmentsarray

filenamerequiredstring

contentstring (byte)

pathstring (uri)

content_typestring

content_idstring

templatestring | object

Option 1string

One permitted response shape.

Option 2object

One permitted response shape.

idrequiredstring

variablesobject

Request examples

request.sh
bash
curl --request POST 'https://api.au.boundry.dev/emails' \
+  -H 'Authorization: Bearer $BOUNDRY_API_KEY' \
+  -H 'Idempotency-Key: string' \
+  -H 'Content-Type: application/json' \
+  --data '{"from":"Acme <hello@example.com>","to":"string","cc":["string"],"bcc":["string"],"reply_to":["string"],"subject":"string","html":"string","text":"string","tags":[{"name":"string","value":"string"}],"scheduled_at":"string","attachments":[{"filename":"string","content":"string","path":"string","content_type":"string","content_id":"string"}],"template":"string"}'

200 response

Accepted resource ID

FieldTypeDescription
idrequiredstring

Example: "msg_01...".

response.jsonExample response
application/json
{
  "id": "msg_01..."
}

400 response

Error

FieldTypeDescription
namerequiredstring

messagerequiredstring

errorsobject

response.jsonExample response
application/json
{
  "name": "string",
  "message": "string"
}

403 response

Error

FieldTypeDescription
namerequiredstring

messagerequiredstring

errorsobject

response.jsonExample response
application/json
{
  "name": "string",
  "message": "string"
}

422 response

Error

FieldTypeDescription
namerequiredstring

messagerequiredstring

errorsobject

response.jsonExample response
application/json
{
  "name": "string",
  "message": "string"
}