Skip to content

Emails API

Send and retrieve email messages.

Send an Email

POST /v1/emails

Request Body

FieldTypeRequiredDescription
fromstringYesSender email address
tostring[]YesRecipient email addresses
subjectstringYesEmail subject
htmlstringNoHTML content
textstringNoPlain text content
ccstring[]NoCC recipients
bccstring[]NoBCC recipients
reply_tostringNoReply-to address

Example Request

bash
curl -X POST https://api.resendplus.com/v1/emails \
  -H "Authorization: Bearer rp_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "[email protected]",
    "to": ["[email protected]"],
    "subject": "Welcome!",
    "html": "<h1>Welcome aboard!</h1>"
  }'

Response

json
{
  "id": "email_abc123",
  "from": "[email protected]",
  "to": ["[email protected]"],
  "subject": "Welcome!",
  "status": "queued",
  "created_at": "2024-01-15T10:30:00Z"
}

Get an Email

GET /v1/emails/{id}

Retrieve an email by ID to check its delivery status.

Response

json
{
  "id": "email_abc123",
  "from": "[email protected]",
  "to": ["[email protected]"],
  "subject": "Welcome!",
  "status": "delivered",
  "created_at": "2024-01-15T10:30:00Z",
  "sent_at": "2024-01-15T10:30:01Z",
  "delivered_at": "2024-01-15T10:30:05Z"
}

Email Status

StatusDescription
queuedEmail is queued for sending
sentEmail was sent to the mail server
deliveredEmail was delivered to recipient
bouncedEmail bounced (invalid address)
complainedRecipient marked as spam
failedEmail failed to send

Built with VitePress