Request
Set SORYXA_API_KEY to your Soryxa team token in your shell. Replace the sample email with an address you can check. This call uses your team’s policy.
curl --request POST https://soryxa.elvesora.com/api/v1/validate \
--header "Authorization: Bearer $SORYXA_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"email":"user@example.com"}'
Example success response
Illustrative response for the request above, not a live result for the sample address. The request
sends no policy_key, so the response shows default. Read the decision first, then use the reason
code and checks for routing and logging.
{
"success": true,
"data": {
"policy_key": "default",
"decision": "allow",
"reason_code": "CLASSIFICATION_VALID",
"decision_message": "Email passed all validation checks",
"customer_message": null,
"decision_reasons": ["Valid email with high quality score"],
"auto_resolution": null,
"rollout": {
"mode": "enforce",
"status": "active",
"percentage": 100,
"shadow_decision": null
},
"checks": [
{
"name": "Domain MX",
"status": "passed",
"message": "Domain has valid MX records"
}
],
"base_score": 96,
"score_adjustments": [],
"score": 96,
"raw_data": {
"classification": "valid",
"score": 96
},
"upstream": {
"provider": "elvesora_api",
"state": "closed",
"status": "ok",
"status_code": 200,
"duration_ms": 148,
"failure_count": 0
}
},
"usage": {
"remaining": 249,
"limit": 250,
"purchased_remaining": 5000,
"total_remaining": 5249
}
}