Send a message
Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status.
Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status. Requires messages:create or the send permission of the channel it sends on, such as email:send. channel selects the payload variant. Repeating an identical request with the same optional Idempotency-Key header returns the original receipt; reusing the key for different content returns a conflict.
Authorization
apiKey In: header
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Value in
- "email"
1 <= itemsResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/messages" \ -H "Content-Type: application/json" \ -d '{ "channel": "email", "to": [ { "contactId": "string" } ], "email": {} }'{ "id": "string", "status": "pending", "waitReason": "rate", "reviewExpectedAt": "string", "skippedRecipients": [ { "address": "string", "reason": "bounce", "unsubscribeGroupId": "string" } ], "createdAt": "string"}Related documentation
Delete a message
Permanently deletes a message by its ID. Use this endpoint to delete a message through the Samva email API.
Validate an email message
Resolves recipients, sender, and inline or published-template content without sending anything, creating contacts or messages, or counting toward your quota.