Logo
MicroStrategy REST API API Documentation

Send an email

POST {{baseUrl}}/api/emails

Send an email to specified recipients. You obtain the authorization token needed to execute the request using POST /auth/login; you pass the authorization token in the request header. In the body parameter of the request, you specify the recipients of the email, the content of the subject line, the content of the message body, whether the content is HTML, and any extra properties.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-MSTR-AuthToken
string (Required) Authorization token




RESPONSES

status





Curl
curl -X POST 'baseUrl/api/emails' -H 'X-MSTR-AuthToken: authToken' -d '{"notificationType":"DOSSIER_COMMENT","userIds":["userId"],"subject":"Test Email Subject","content":"test email content"}'

ENDPOINTS