Download OpenAPI specification:Download
Welcome to the Email gateway API reference.
The Email Gateway API is a REST based API, and it uses resource-oriented URLs, and common HTTP response codes to indicate API errors. All requests are authenticated using an x-api-key header.
Send email
Email subject line
| subject required | string The subject line |
| body required | string The body of the email |
| bodyType required | string The bodyType of the email (text | html) |
| from required | string The from email address |
| to required | Array of strings |
| applicationId required | string The application Id used for verification |
| statusCallback | string Location to send email status updates |
{- "subject": "This is the subject line",
- "body": "This is the email body",
- "bodyType": "text",
- "from": "from@phsa.ca",
- "to": [
- "to@phsa.ca"
], - "applicationId": "Application1",
}{- "ResponseMetadata": {
- "RequestId": "ae0d697b-bfea-4dc7-9d55-a20c8cf7135d"
}, - "MessageId": "010d0179aaa67b7d-af3a19d8-259e-482d-975b-f24b38170eff-000000"
}{- "id": "715rx8xy1m",
- "value": "qNpqGcBt3Y1J75RrY7qzLBqVXTDEsGg7p2H1dWa1",
- "name": "ApplicationId-Application1-162207675310",
- "enabled": true,
- "createdDate": "2021-05-27T17:44:00.507Z",
- "lastUpdatedDate": "2021-05-27T17:44:00.507Z",
- "stageKeys": [
- "string"
]
}