cURL
Email Block
curl --request POST \ --url https://api.jetemail.com/inbound/blocklist \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "domain": "example.com", "type": "from", "action": "block", "value": "[email protected]", "notes": "Known spam account"}'
{ "success": true, "message": "Blocklist rule created successfully", "uuid": "550e8400-e29b-41d4-a716-446655440000" }
Creates a new blocklist rule for an inbound domain
Enter your Bearer token in the format "Bearer {token}"
Blocklist rule created successfully
The response is of type object.
object