openapi: 3.2.0
info:
title: Optimizely Campaign REST Batch sending API
description: 'This documentation lists all available resources and endpoints of the Optimizely Campaign REST API. The REST API lets you integrate Optimizely Campaign with your business applications and third-party software. Use Optimizely Campaign features and functionalities remotely to manage your recipient data, campaigns and mailings.
To use the REST API, set up your Optimizely Campaign client first. See Client setup on Optimizely World.
The base URL for all API requests is as follows: https://api.campaign.episerver.net/rest/{clientId}/{component}/{path}?{parameters}
Try it out
The "Try it out" feature lets you test the API before you implement it in the target system. To perform real API requests against your client, authorize with your Base64-encoded credentials. See Authentication on Optimizely World.
To learn more about the Optimizely Campaign REST API, see Optimizely World.
If you want to import the API definition in Postman, download the source file and import it in Postman as a collection.'
version: '1'
servers:
- url: https://api.campaign.episerver.net/rest
tags:
- name: Batch sending
description: Create and send messages as batches to recipients segmented in separate platform
paths:
/{clientId}/sending/batches/{sendingBatchId}:
get:
tags:
- Batch sending
summary: Get information about a sending batch
description: Get detailed information about a sending batch, such as id, campaign, recipient list and state.
operationId: getSendingBatch
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: number
- name: sendingBatchId
in: path
description: Sending Batch ID
required: true
schema:
type: number
responses:
'200':
description: The sending batch was retrieved successfully
content:
application/json:
schema:
$ref: '#/components/schemas/RestSendingBatch'
application/vnd.optivo.broadmail.v1+json:
schema:
$ref: '#/components/schemas/RestSendingBatch'
'404':
description: The sending batch could not be found. Ensure that the required parameter is correct and the sending batch entry exists.
security:
- Authorization: []
put:
tags:
- Batch sending
summary: Persist chunked recipients
description: Transfer recipients that will be used for the sending batch.
operationId: addRecipients_1
parameters:
- name: clientId
in: path
description: Client ID
required: true
schema:
type: number
- name: sendingBatchId
in: path
description: Sending Batch ID
required: true
schema:
type: number
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RecipientsChunkRequestData'
required: true
responses:
'200':
description: Chunk with the number of pre-validated recipients.
content:
application/json:
schema:
$ref: '#/components/schemas/RestChunk'
application/vnd.optivo.broadmail.v1+json:
schema:
$ref: '#/components/schemas/RestChunk'
'400':
description:
Default value : 0
' schema: type: integer format: int32 - name: limit in: query description: 'Maximum number of retrieved sending batchesDefault value : 100
' schema: type: integer format: int32 responses: '200': description: The sending batches were retrieved successfully (empty result if none was found). content: application/json: schema: $ref: '#/components/schemas/RestSendingBatchStreamingCollection' application/vnd.optivo.broadmail.v1+json: schema: $ref: '#/components/schemas/RestSendingBatchStreamingCollection' '400': description: Invalid limit request. Change the limit to less than 10000. security: - Authorization: [] post: tags: - Batch sending summary: Prepares new sending batch description: Creates a new sending batch based on configured campaign parameters and the next available recipient list from the pool. operationId: prepareNewBatch parameters: - name: clientId in: path description: Client ID required: true schema: type: number requestBody: content: multipart/form-data: schema: $ref: '#/components/schemas/PrepareSendingBatchRequest' responses: '201': description: The batch was prepared successfully. content: application/json: schema: $ref: '#/components/schemas/RestSendingBatch' application/vnd.optivo.broadmail.v1+json: schema: $ref: '#/components/schemas/RestSendingBatch' '400': description: