boundry.
RegionSydney, Australia
Documentation/Ingest an inbound email
POST/inbound

Ingest an inbound email

Authentication

Bearer authentication is required for this operation.

Request body

FieldTypeDescription
fromrequiredstring

Sender email address. Example: "hello@example.com".

htmlstring

HTML email content.

subjectstring

Email subject.

textstring

Plain-text email content.

torequiredstring

Receiving email address. Example: "hello@example.com".

Request examples

request.sh
bash
curl --request POST 'https://api.au.boundry.dev/inbound' \
+  -H 'Authorization: Bearer $BOUNDRY_API_KEY' \
+  -H 'Content-Type: application/json' \
+  --data '{"from":"sender@example.com","text":"Hello","to":"inbox@acme.com"}'

202 response

Inbound email stored in the local data plane.

FieldTypeDescription
datarequiredobject

Stored inbound email. Example: {"created_at":"2026-08-14T12:00:00.000Z","from":"sender@example.com","html":null,"id":"rcv_01j0example","status":"received","subject":"Hello","text":"Hello","to":["inbox@acme.com"],"updated_at":"2026-08-14T12:00:00.000Z"}.

created_atrequiredstring (date-time)

Timestamp when the email was received. Example: "2026-08-14T12:00:00.000Z".

fromrequiredstring

Sender email address. Example: "hello@example.com".

htmlrequiredstring | null | null

HTML body, or null when omitted.

Option 1string

HTML email content.

Option 2null | null

One permitted response shape.

idrequiredstring

Inbound email identifier. Example: "msg_01j0example".

statusrequiredstring

Inbound email status. Values: "received".

subjectrequiredstring

Email subject.

textrequiredstring | null | null

Plain-text body, or null when omitted.

Option 1string

Plain-text email content.

Option 2null | null

One permitted response shape.

torequiredarray

Receiving addresses.

updated_atrequiredstring (date-time)

Timestamp when the email was last updated. Example: "2026-08-14T12:00:00.000Z".

moderequiredstring

Inbound processing mode. Values: "local-inbound".

response.jsonExample response
application/json
{
  "from": "sender@example.com",
  "text": "Hello",
  "to": "inbox@acme.com"
}

400 response

Request body was not valid JSON.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "from": "sender@example.com",
  "text": "Hello",
  "to": "inbox@acme.com"
}

401 response

Invalid API key.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "from": "sender@example.com",
  "text": "Hello",
  "to": "inbox@acme.com"
}

422 response

Inbound email validation failed.

FieldTypeDescription
errorsarray

Detailed validation issues. Absent only for the historical 401 API-key envelope.

coderequiredstring

Zod validation issue code. Example: "invalid_format".

messagerequiredstring

Human-readable validation failure. Example: "Invalid email address".

pathrequiredstring

Dot-separated location of the invalid value. Example: "from".

messagerequiredstring

Human-readable error message. Example: "Request validation failed.".

namerequiredstring

Machine-readable error category. Values: "validation_error", "application_error", "not_found". Example: "validation_error".

response.jsonExample response
application/json
{
  "from": "sender@example.com",
  "text": "Hello",
  "to": "inbox@acme.com"
}