GET /mail/{id}/blocks

Displays a listing of the blocked email addresses

Path parameters

  • id integer Required

    Mail ID number

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • local array[object] Required

      A block entry from the clickhouse mailblocks server.

      Hide local attributes Show local attributes object
      • date string(date) Required
      • from string Required
      • messageId string Required
      • subject string Required
      • to string Required
    • mbtrap array[object] Required

      A block entry from the clickhouse mailblocks server.

      Hide mbtrap attributes Show mbtrap attributes object
      • date string(date) Required
      • from string Required
      • messageId string Required
      • subject string Required
      • to string Required
    • subject array[object] Required

      This is a block entry from the rspamd block list.

      Hide subject attributes Show subject attributes object
      • from string Required
      • subject string Required
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
  • 404 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
GET /mail/{id}/blocks
curl \
 --request GET 'https://my.interserver.net/apiv2/mail/{id}/blocks' \
 --header "X-API-KEY: $API_KEY"
Response examples (200)
{
  "local": [
    {
      "to": "['client@site.com']",
      "date": "2023-08-07",
      "from": "user@domain.com",
      "subject": "Test Email",
      "messageId": "pFaRqFUEWkucjhTuIzYuoAgWU@domain.com"
    }
  ],
  "mbtrap": [
    {
      "to": "['client@site.com']",
      "date": "2023-08-07",
      "from": "user@domain.com",
      "subject": "Test Email",
      "messageId": "pFaRqFUEWkucjhTuIzYuoAgWU@domain.com"
    }
  ],
  "subject": [
    {
      "from": "user@domain.com",
      "subject": "Test Email"
    }
  ]
}
Response examples (401)
{
  "code": "string",
  "message": "string"
}
Response examples (404)
{
  "code": "string",
  "message": "string"
}