Optimizely Blocklist entries API
Manage recipients on the blocklist
Manage recipients on the blocklist
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/optimizely-blocklist-entries-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Optimizely Campaign REST Blocklist entries API
description: This documentation lists all available resources and endpoints of the Optimizely Campaign REST API.
version: '1'
servers:
- url: https://api.campaign.episerver.net/rest
tags:
- name: Blocklist entries
description: Manage recipients on the blocklist
paths:
/{clientId}/blacklistentries/blacklisted:
get:
tags:
- Blocklist entries
summary: Check whether an address is blocklisted
operationId: blacklisted
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: string
- name: address
in: query
description: Address to be checked
schema:
type: string
responses:
'200':
description: true/false as result
content:
application/json:
schema:
$ref: '#/components/schemas/RestBlacklistedEntry'
application/vnd.optivo.broadmail.v1+json:
schema:
$ref: '#/components/schemas/RestBlacklistedEntry'
security:
- Authorization: []
/{clientId}/blacklistentries/count:
get:
tags:
- Blocklist entries
summary: Get the total number of blocklist entries
description: Get the total number of blocklist entries. You can choose whether to include or exclude parent clients.
operationId: count_2
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: string
- name: includeParent
in: query
description: 'Include parent clients in the counting<p><i>Default value</i> : false</p>'
schema:
type: boolean
responses:
'200':
description: The number of blocklist entries was retrieved successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/RestCount'
application/vnd.optivo.broadmail.v1+json:
schema:
$ref: '#/components/schemas/RestCount'
security:
- Authorization: []
/{clientId}/blacklistentries:
get:
tags:
- Blocklist entries
summary: Get information about all blocklist entries
description: Get detailed information about all blocklist entries, such as pattern, reason or creation date. You can limit the maximum number of retrieved blocklist entries and sort the result by specific criteria.
operationId: findAllBlacklistEntries
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: string
- name: offset
in: query
description: 'Starting point of the result list <p><i>Default value</i> : 0</p>'
schema:
type: integer
format: int32
- name: limit
in: query
description: 'Maximum number of retrieved blocklist entries<p><i>Default value</i> : 100</p>'
schema:
type: integer
format: int32
- name: pattern
in: query
description: Matching pattern
schema:
type: array
items:
type: string
- name: reason
in: query
description: Matching reason
schema:
type: string
- name: sort
in: query
schema:
type: string
description: Sort result by specific criteria
default: created
enum:
- pattern
- reason
- created
- modified
- name: direction
in: query
description: Sort order
schema:
type: string
enum:
- ASC
- DESC
responses:
'200':
description: The blocklist entries were retrieved successfully (empty result if none was found).
content:
application/json:
schema:
$ref: '#/components/schemas/RestBlacklistEntryStreamingCollection'
application/vnd.optivo.broadmail.v1+json:
schema:
$ref: '#/components/schemas/RestBlacklistEntryStreamingCollection'
'400':
description: Invalid limit request. Change the limit to less than 10000.
security:
- Authorization: []
post:
tags:
- Blocklist entries
summary: Create a blocklist entry
description: Create a blocklist entry. You can specify a reason for blocklisting.
operationId: createBlacklistEntry
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: string
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/BlacklistEntryRequestData'
responses:
'201':
description: The blocklist entry was created successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/RestBlacklistEntry'
application/vnd.optivo.broadmail.v1+json:
schema:
$ref: '#/components/schemas/RestBlacklistEntry'
'400':
description: A required value for the entry is not provided. Check for the blocklist entry pattern and add it to the request.
security:
- Authorization: []
delete:
tags:
- Blocklist entries
summary: Delete multiple blocklist entries
operationId: deleteBlacklistEntries
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: string
- name: entries
in: query
description: List of blocklist entry patterns<p><b>Note:</b> If the blocklist entry pattern contains special characters, the pattern must be URL-encoded. For example, use the code %2f for a forward slash (/), %252f for a double slash (//), %2B for a plus sign (+) etc.</p>
required: true
schema:
type: array
items:
type: string
responses:
'204':
description: The deletion was initiated successfully.
'400':
description: The list of entries is not provided or the number of entries has exceeded the limit. Provide an array with blocklist entries or limit the number of entries to a maximum of 1000.
security:
- Authorization: []
/{clientId}/blacklistentries/{entry}:
get:
tags:
- Blocklist entries
summary: Get information about a blocklist entry
description: Get detailed information about a blocklist entry, such as pattern, reason for blocklisting or creation date.
operationId: getBlacklistEntry
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: string
- name: entry
in: path
description: Blocklist entry pattern<p><b>Note:</b> If the blocklist entry pattern contains special characters, the pattern must be URL-encoded. For example, use the code %2f for a forward slash (/), %252f for a double slash (//), %2B for a plus sign (+) etc.</p>
required: true
schema:
type: string
responses:
'200':
description: The blocklist entry was retrieved successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/RestBlacklistEntry'
application/vnd.optivo.broadmail.v1+json:
schema:
$ref: '#/components/schemas/RestBlacklistEntry'
'404':
description: The blocklist entry could not be found. Ensure that the required parameters such as "entry" are correct and the blocklist entry exists.
security:
- Authorization: []
delete:
tags:
- Blocklist entries
summary: Delete a blocklist entry
operationId: deleteBlacklistEntry
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: string
- name: entry
in: path
description: Blocklist entry pattern<p><b>Note:</b> If the blocklist entry pattern contains special characters, the pattern must be URL-encoded. For example, use the code %2f for a forward slash (/), %252f for a double slash (//), %2B for a plus sign (+) etc.</p>
required: true
schema:
type: string
responses:
'204':
description: The blocklist entry was deleted successfully.
'404':
description: The blocklist entry could not be found. Ensure that the required parameter is correct and the blocklist entry exists.
security:
- Authorization: []
components:
schemas:
BlacklistEntryRequestData:
required:
- entry
type: object
properties:
reason:
type: string
description: Reason for creating a blocklist entry
entry:
type: string
description: Pattern of the blocklist entry. You can use * for multiple character matching or ? for single character matching. If this characters should be matched as literals they need to be escaped with a backslash (\* or \?)
RestApiLink:
type: object
properties:
href:
type: string
rel:
type: string
RestBlacklistEntry:
type: object
properties:
mailingGroupId:
type: integer
description: Client ID
format: int64
pattern:
type: string
description: Pattern for all mailing addresses that push into the blocklist
reason:
type: string
description: Reason for adding a pattern into the blocklist
created:
type: string
description: Date and time of creation
format: date-time
modified:
type: string
description: Date and time of modification
format: date-time
links:
type: array
items:
type: object
properties:
uriBuilder:
type: object
rels:
type: array
items:
type: string
rel:
type: string
type:
type: string
params:
type: object
additionalProperties:
type: string
title:
type: string
uri:
type: string
format: uri
RestBlacklistedEntry:
type: object
properties:
blacklisted:
type: boolean
description: If true, the entry is blocklisted
pattern:
type: string
description: Address pattern
RestCount:
type: object
properties:
links:
type: array
items:
type: object
properties:
uriBuilder:
type: object
rels:
type: array
items:
type: string
rel:
type: string
type:
type: string
params:
type: object
additionalProperties:
type: string
title:
type: string
uri:
type: string
format: uri
count:
type: integer
description: Total number
format: int64
RestBlacklistEntryStreamingCollection:
type: object
properties:
elements:
type: array
items:
$ref: '#/components/schemas/RestBlacklistEntry'
links:
type: array
writeOnly: true
items:
$ref: '#/components/schemas/RestApiLink'
count:
type: integer
format: int32
offset:
type: integer
format: int32
limit:
type: integer
format: int32
securitySchemes:
Authorization:
type: apiKey
name: Authorization
in: header
x-readme:
explorer-enabled: true
proxy-enabled: true