Skip to main content
POST
/
api
/
validate_email
Validate Email
curl --request POST \
  --url https://api.example.com/api/validate_email/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "text_snippet": "<string>"
}
'
{
  "job_id": "email_abc123",
  "status": "accepted"
}
Submit email content for asynchronous compliance validation. This endpoint validates against all rule packs.

Request Body

text_snippet
string
required
Email content to validate

Response

job_id
string
Unique identifier for the validation job
status
string
Job status: accepted
{
  "job_id": "email_abc123",
  "status": "accepted"
}

Example

curl -X POST "https://zhshgjat2b.execute-api.us-east-1.amazonaws.com/dev/v1/api/validate_email/" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text_snippet": "Dear Investor,\n\nI am excited to share that our fund has achieved exceptional returns..."
  }'