curl --request POST \
--url https://api.open.cx/blocklist/domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domains": "<string>",
"reason": "<string>"
}
'{
"blocked": [
{
"id": "<string>",
"domain": "<string>",
"reason": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"skipped": [
"<string>"
],
"summary": {
"total": 123,
"blocked": 123,
"skipped": 123
}
}Block one or more email domains. Pass a comma-separated string for multiple domains (e.g. “spam.com, junk.org”). Messages from contacts with emails on these domains will be ignored.
curl --request POST \
--url https://api.open.cx/blocklist/domains \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domains": "<string>",
"reason": "<string>"
}
'{
"blocked": [
{
"id": "<string>",
"domain": "<string>",
"reason": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"skipped": [
"<string>"
],
"summary": {
"total": 123,
"blocked": 123,
"skipped": 123
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?