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\nURL Parameters
\r\n\r\n\r\n\r\n| Key | Required | Description |
\r\n\r\n\r\n| {{ListID}} | required | ID of the list |
\r\n\r\n
\r\n\r\nBody Parameters (to be encoded as a JSON string)
\r\n\r\n\r\n\r\n| Key | Required | Description |
\r\n\r\n\r\n| ContactIDs | required | IDs of the contacts to be inserted | "
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\nQuery String parameters
\r\n\r\n\r\n\r\n| Key | Required | Type | Description |
\r\n\r\n\r\n| PageNumber | optional | int | Page Number |
\r\n| PageSize | required | int | Number of rows on the page |
\r\n| Filter | required | string | Filter value |
\r\n| OrderBy | required | string | 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\nURL Parameters\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| required | {{SegmentID}} | string | ID of the segment | \r\n\r\n \r\n\r\nResponse body parameters\r\n\r\n\r\n\r\n| Key | Type | Description | \r\n\r\n\r\n| status | string | 1 if successful, -1 if error | \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\nURL Parameters\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| {{SegmentID}} | required | string | ID of the segment | \r\n\r\n \r\n\r\nResponse body parameters\r\n\r\n\r\n\r\n| Key | Type | Description | \r\n\r\n\r\n| Status | string | 1 if successful, -1 if error | \r\nUpdate Segment\r\nURL Parameters\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| {{SegmentID}} | required | string | ID of the segment | \r\n\r\n \r\n\r\nBody Parameters (To be passed as a JSON string)\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| Data | optional | Get Segment Details
URL Parameters
| Key | Required | Type | Description |
| {{SegmentID}} | required | string | ID of the segment |
Query String Parameters
| Key | Required | Type | Description |
| PageNumber | optional | int | Page 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\nURL Parameters\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| {{ListID}} | required | string | ID of the list | \r\n\r\n \r\n\r\nResponse body parameters\r\n\r\n\r\n\r\n| Key | Type | Description | \r\n\r\n\r\n| Status | string | 1 if successful, -1 if error | \r\nDelete Segment\r\nURL Parameters\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| {{SegmentID}} | required | string | ID of the segment | \r\n\r\n \r\n\r\nResponse body parameters\r\n\r\n\r\n\r\n| Key | Type | Description | \r\n\r\n\r\n| Status | string | 1 if successful, -1 if error | \r\nErrorData"
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\nURL Parameters\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| {{SegmentID}} | required | string | ID of the segment | \r\n\r\n \r\n\r\nBody Parameters (To be passed as a JSON string)\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| Criteria | required | <"
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\nURL Parameters\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| {{ListID}} | required | string | ID of the list | \r\n\r\n \r\n\r\nResponse body parameters\r\n\r\n\r\n\r\n| Key | Type | Description | \r\n\r\n\r\n| Status | string | 1 if successful, -1 if error | \r\n| Count | Get download segment data\r\nURL Parameters\r\n\r\n\r\n\r\n| Key | Required | Type | Description | \r\n\r\n\r\n| {{ID}} | required | string | IDs of the segment | \r\n\r\n \r\n\r\nResponse body parameters\r\n\r\n\r\n\r\n| Key | Type | Description | \r\n\r\n\r\n| Status | string | 1 if successful, -1 error | \r\n| Segment"
components:
securitySchemes:
apiKeyAuth:
type: apiKey
in: header
name: AuthToken
description: API token obtained from https://ui.benchmarkemail.com/Integrate#API
| | | | | | |