curl --request POST \
--url https://api.open.cx/email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_email": "[email protected]",
"recipients": [
{
"to_email": "[email protected]",
"email_body": "<string>",
"email_subject": "<string>",
"email_sender_name": "<string>",
"email_is_transactional": true
}
],
"delay_in_minutes": 123,
"fallback_email_subject": "<string>",
"fallback_email_sender_name": "<string>",
"fallback_email_body": "<string>"
}
'{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Send emails to multiple contacts, possibly with a time delay.
To send emails using the API, you must first verify the domain you want to send emails from. You can add and verify custom domains in the settings.
curl --request POST \
--url https://api.open.cx/email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_email": "[email protected]",
"recipients": [
{
"to_email": "[email protected]",
"email_body": "<string>",
"email_subject": "<string>",
"email_sender_name": "<string>",
"email_is_transactional": true
}
],
"delay_in_minutes": 123,
"fallback_email_subject": "<string>",
"fallback_email_sender_name": "<string>",
"fallback_email_body": "<string>"
}
'{
"statusCode": 123,
"message": "<string>",
"error": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Default Response
Was this page helpful?