CASE FrameworkCASE Framework

Send an email

POST
/send-email

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/send-email" \  -H "Content-Type: application/json" \  -d '{    "to": [      "user@example.com"    ],    "subject": "Hello",    "content": "<p>Hi there</p>",    "highPrio": false  }'
{
  "message": "email sent"
}

{
  "error": "A valid API key missing"
}

{
  "error": "failed to send email"
}