Skip to main content
POST
/
v1
/
emails
/
test
/
send
Send Test Email
curl --request POST \
  --url https://api.migma.ai/v1/emails/test/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "conversationId": "<string>",
  "to": "[email protected]"
}
'
{
  "success": true,
  "data": {
    "messageId": "<string>",
    "conversationId": "<string>",
    "sentTo": "[email protected]",
    "sentAt": "2023-11-07T05:31:56Z",
    "subject": "<string>"
  },
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use 'Authorization: Bearer ' where the JWT token is obtained from the login endpoint.

Body

application/json
conversationId
string
required

The conversation ID containing the email to send

to
string<email>
required

Recipient email address

Response

Test email sent successfully

success
boolean
required
data
object
error
string | null