API Reference
Send Email
Send an email with attachments and advanced options.
Endpoint
POST
/v1/mail/sendcurl -X POST https://api.case.dev/v1/mail/send \
-H "Authorization: Bearer sk_case_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "client@example.com",
"subject": "Deposition Summary",
"body": "Please find attached the deposition summary.",
"attachments": [
{
"name": "summary.pdf",
"url": "https://your-bucket.s3.amazonaws.com/summary.pdf"
}
]
}'Example Request
Example Response
Request Parameters
Required:
to(string): Recipient email addresssubject(string): Email subject linebody(string): Email body content
Optional:
from(string): Sender email address (must be verified domain)cc(array): CC recipientsbcc(array): BCC recipientsattachments(array): File attachmentsname(string): Filenameurl(string): Publicly accessible URL to the filecontent_type(string): MIME type (auto-detected if not provided)
webhook_url(string): URL to receive delivery status updatesmetadata(object): Custom metadata for tracking
List Messages
Get a list of sent emails with filtering options.
Endpoint
Example Request
Example Response
Get Message Details
Get detailed information about a specific email.