openapi: 3.0.3 info: title: Benchmark Email RESTful API v3.0 ABTest Creation Segments API description: 'RESTful API for managing email marketing contacts, lists, campaigns, automations, reports, images, and webhooks within the Benchmark Email platform. To use the API, you need a Benchmark Email API token available at https://ui.benchmarkemail.com/Integrate#API. Rate limit: 500 calls per 2 minutes and 60,000 calls per day.' version: 3.0.0 contact: name: Benchmark Email Developer Support url: https://developer.benchmarkemail.com/ license: name: Proprietary servers: - url: https://clientapi.benchmarkemail.com description: Benchmark Email Client API security: - apiKeyAuth: [] tags: - name: Segments description: Manage contact segments paths: /Contact/{ListID}/Segments: post: tags: - Segments summary: Creating segment from contact IDs operationId: post__contact__listid__segments parameters: - name: ListID in: path required: true schema: type: string responses: '200': description: Successful response '400': description: Bad request '401': description: Unauthorized '404': description: Not found description: "

Creates segment from contact IDs

\r\n

URL Parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredDescription
{{ListID}}requiredID of the list
\r\n\r\n

Body Parameters (to be encoded as a JSON string)

\r\n\r\n\r\n\r\n\r\n\r\n\r\n" requestBody: content: application/json: schema: type: object /Contact/Segments: get: tags: - Segments summary: Getting a list of segments operationId: get__contact_segments parameters: [] responses: '200': description: Successful response '400': description: Bad request '401': description: Unauthorized '404': description: Not found description: "

Get Segments

\r\n\r\n\r\n

Query String parameters

\r\n
KeyRequiredDescription
ContactIDsrequiredIDs of the contacts to be inserted
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
PageNumberoptionalint Page Number
PageSizerequiredint Number of rows on the page
Filterrequiredstring Filter value
OrderByrequiredstring Order By Column (" /Contact/Segments/{SegmentID}: delete: tags: - Segments summary: Delete Segment operationId: delete__contact_segments__segmentid parameters: - name: SegmentID in: path required: true schema: type: string responses: '200': description: Successful response '400': description: Bad request '401': description: Unauthorized '404': description: Not found description: "

Deletes an existing segment

\r\n

URL Parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
required{{SegmentID}}stringID of the segment
\r\n\r\n

Response body parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n" get: tags: - Segments summary: Get segment by ID operationId: get__contact_segments__segmentid parameters: - name: SegmentID in: path required: true schema: type: string responses: '200': description: Successful response '400': description: Bad request '401': description: Unauthorized '404': description: Not found description: "

Get an existing segment by ID

\r\n

URL Parameters

\r\n
KeyTypeDescription
statusstring1 if successful, -1 if error
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
{{SegmentID}}requiredstringID of the segment
\r\n\r\n

Response body parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nUpdate Segment\r\n

URL Parameters

\r\n
KeyTypeDescription
Statusstring1 if successful, -1 if error
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
{{SegmentID}}requiredstringID of the segment
\r\n\r\n

Body Parameters (To be passed as a JSON string)

\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
DataoptionalGet Segment Details

URL Parameters

KeyRequiredTypeDescription
{{SegmentID}}requiredstringID of the segment

Query String Parameters

KeyRequiredTypeDescription
PageNumberoptionalintPage Number
PageSiz' /Contact/Segments/Name/{ListID}: get: tags: - Segments summary: Get Segment Auto Generate Name operationId: get__contact_segments_name__listid parameters: - name: ListID in: path required: true schema: type: string responses: '200': description: Successful response '400': description: Bad request '401': description: Unauthorized '404': description: Not found description: "

Get Segment Auto Generate Name

\r\n

URL Parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
{{ListID}}requiredstringID of the list
\r\n\r\n

Response body parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nDelete Segment\r\n

URL Parameters

\r\n
KeyTypeDescription
Statusstring1 if successful, -1 if error
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
{{SegmentID}}requiredstringID of the segment
\r\n\r\n

Response body parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyTypeDescription
Statusstring1 if successful, -1 if error
ErrorData" post: tags: - Segments summary: Create Criteria operationId: post__contact_segments__segmentid__criteria parameters: - name: SegmentID in: path required: true schema: type: string responses: '200': description: Successful response '400': description: Bad request '401': description: Unauthorized '404': description: Not found description: "

Create a new Segments Criteria

\r\n

URL Parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
{{SegmentID}}requiredstringID of the segment
\r\n\r\n

Body Parameters (To be passed as a JSON string)

\r\n\r\n\r\n\r\n\r\n\r\n\r\n<" requestBody: content: application/json: schema: type: object /Contact/{ListID}/SegmentLists: get: tags: - Segments summary: Get Segment List operationId: get__contact__listid__segmentlists parameters: - name: ListID in: path required: true schema: type: string responses: '200': description: Successful response '400': description: Bad request '401': description: Unauthorized '404': description: Not found description: "

Get Segment List

\r\n

URL Parameters

\r\n
KeyRequiredTypeDescription
Criteriarequired
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
{{ListID}}requiredstringID of the list
\r\n\r\n

Response body parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nGet download segment data\r\n

URL Parameters

\r\n
KeyTypeDescription
Statusstring1 if successful, -1 if error
Count
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyRequiredTypeDescription
{{ID}}requiredstringIDs of the segment
\r\n\r\n

Response body parameters

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
KeyTypeDescription
Statusstring1 if successful, -1 error
Segment" components: securitySchemes: apiKeyAuth: type: apiKey in: header name: AuthToken description: API token obtained from https://ui.benchmarkemail.com/Integrate#API