API reference
4 endpoints. All paths are relative to your installation, for example https://app.example.com.
/api/v1/w/{workspaceId}/compliance/rulesCountry sending rules (technical safeguards, not legal advice)/api/v1/w/{workspaceId}/compliance/rulesCreate/update a country rule/api/v1/w/{workspaceId}/compliance/rules/{id}Delete a country rule/api/v1/w/{workspaceId}/compliance/check/{leadId}Explain whether a lead can be contacted now/api/v1/w/{workspaceId}/compliance/rulesCountry sending rules (technical safeguards, not legal advice)
Path parameters
workspaceIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/compliance/rules" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/compliance/rulesCreate/update a country rule
Path parameters
workspaceIdrequired | string |
Request body (JSON)
countryCoderequired | stringLength 1–3 |
labelrequired | stringLength 1–80 |
sendingAllowedrequired | boolean |
allowedLawfulBasesrequired | enum[] |
requirePostalAddressrequired | boolean |
requireUnsubscribeLinkrequired | boolean |
reviewedByOwnerrequired | boolean |
notes | string | null |
curl -X PUT "https://app.example.com/api/v1/w/$WORKSPACE_ID/compliance/rules" \
-H "Authorization: Bearer $EMN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"countryCode": "string",
"label": "string",
"sendingAllowed": true,
"allowedLawfulBases": [
"UNKNOWN"
],
"requirePostalAddress": true,
"requireUnsubscribeLink": true,
"reviewedByOwner": true,
"notes": "string"
}'/api/v1/w/{workspaceId}/compliance/rules/{id}Delete a country rule
Path parameters
workspaceIdrequired | string |
idrequired | string |
curl -X DELETE "https://app.example.com/api/v1/w/$WORKSPACE_ID/compliance/rules/$ID" \
-H "Authorization: Bearer $EMN_API_KEY"/api/v1/w/{workspaceId}/compliance/check/{leadId}Explain whether a lead can be contacted now
Path parameters
workspaceIdrequired | string |
leadIdrequired | string |
curl -X GET "https://app.example.com/api/v1/w/$WORKSPACE_ID/compliance/check/$LEAD_ID" \
-H "Authorization: Bearer $EMN_API_KEY"