API
Unblock a contact
Takes every workspace blocklist rule that blocks the address off the list, and lists them in `removed`. This is Unblock on a contact in the app.
DELETEapi.openemail.uk/contacts/{email}/block
Runs the real call against your workspace, with your own key.
DELETE /contacts/{email}/block
Takes every workspace blocklist rule that blocks the address off the list, and lists them in removed. This is Unblock on a contact in the app.
Example
Needs settings:write. URL-encode the @.
curl -X DELETE "$OE/contacts/news%40shop.example/block" -H "$AUTH"{ "object": "contact_block", "email": "[email protected]", "blocked": false, "removed": [{ "rule": "shop.example", "list": "blockedDomains" }]}A rule in blockedDomains blocks a whole domain and every subdomain under it, so taking it off unblocks everybody at that domain, not only this address. Read removed when that matters.
Rules set for one address or one domain in the settings are not touched. An address that no workspace rule blocks answers with removed empty.