Blocked Sender
- 16 Jun 2022
- 1 Minute to read
- Print
- DarkLight
Blocked Sender
- Updated on 16 Jun 2022
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Blocked Sender
Block sender,reject or mark as junk message.
Blocked Senders
- Blocked Senders ManageGET ticketing/blockedSenders
- Get the list of Blocked SendersGET ticketing/blockedSenders/{id}
- Get a single Blocked SenderPOST ticketing/blockedSenders
- Create a new Blocked SenderPUT ticketing/blockedSenders/{id}
- Update the Blocked SenderDELETE ticketing/blockedSenders/{id}
- Remove the Blocked Sender
Blocked Sender JSON Format
Blocked Sender is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id | guid | Id of blocked sender. |
emailOrDomain | string | Blocked email or domain. |
blockLevel | string | How to block a message. Allowed values are "markFutureMessagesAsJunk", "rejectAllFutureMessages". |
Get the list of Blocked Senders
GET ticketing/blockedSenders
Parameters:
Name | Type | in | Required | Description |
---|---|---|---|---|
emailOrDomain | string | query | no | Filter by email or domain. |
Response:
An array of Blocked Sender
Example
Sample Request:
curl https://api11.comm100.io/v4/ticketing/blockedSenders \
-X 'GET' \
-H 'Authorization: Bearer {access_token}' \
Response:
HTTP/1.1 200 OK
{
"blockedSenders": [
{
"id": "6251ff43-4fcf-44fd-875f-a8dbeff95513",
"emailOrDomain": "comm100.com",
"blockLevel": "rejectAllFutureMessages"
}
],
"nextPage": null,
"previousPage": null,
"total": 1
}
Get a single Blocked Sender
GET ticketing/blockedSenders/{id}
Parameters:
No Parameters
Response:
Example
Sample Request:
curl https://api11.comm100.io/v4/ticketing/blockedSenders/6251ff43-4fcf-44fd-875f-a8dbeff95513 \
-X 'GET' \
-H 'Authorization: Bearer {access_token}' \
Response:
HTTP/1.1 200 OK
{
"id": "6251ff43-4fcf-44fd-875f-a8dbeff95513",
"emailOrDomain": "comm100.com",
"blockLevel": "rejectAllFutureMessages"
}
Create a new Blocked Sender
POST ticketing/blockedSenders
Parameters:
Name | Type | in | Required | Description |
---|---|---|---|---|
emailOrDomain | string | body | yes | Blocked email or domain. |
blockLevel | string | body | no | How to block a message. Allowed values are "markFutureMessagesAsJunk", "rejectAllFutureMessages". |
Response:
Example
Sample Request:
curl https://api11.comm100.io/v4/ticketing/blockedSenders \
-X 'POST' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"emailOrDomain":"comm100.com","blockLevel":"rejectAllFutureMessages"}'
Response:
HTTP/1.1 201 Created
{
"id": "6251ff43-4fcf-44fd-875f-a8dbeff95513",
"emailOrDomain": "comm100.com",
"blockLevel": "rejectAllFutureMessages"
}
Update the Blocked Sender
PUT ticketing/blockedSenders/{id}
Parameters:
Name | Type | in | Required | Description |
---|---|---|---|---|
emailOrDomain | string | body | yes | Blocked email or domain. |
blockLevel | string | body | no | How to block a message. Allowed values are "markFutureMessagesAsJunk", "rejectAllFutureMessages". |
Response:
Example
Sample Request:
curl https://api11.comm100.io/v4/ticketing/blockedSenders/6251ff43-4fcf-44fd-875f-a8dbeff95513 \
-X 'PUT' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"emailOrDomain":"comm100.com","blockLevel":"rejectAllFutureMessages"}'
Response:
HTTP/1.1 200 OK
{
"id": "6251ff43-4fcf-44fd-875f-a8dbeff95513",
"emailOrDomain": "comm100.com",
"blockLevel": "rejectAllFutureMessages"
}
Remove the Blocked Sender
DELETE ticketing/blockedSenders/{id}
Parameters:
No Parameters
Response:
No Content
Example
Sample Request:
curl https://api11.comm100.io/v4/ticketing/blockedSenders/6251ff43-4fcf-44fd-875f-a8dbeff95513 \
-X 'DELETE' \
-H 'Authorization: Bearer {access_token}' \
Response:
HTTP/1.1 204 No Content
Was this article helpful?