openapi: 3.2.0 info: version: v1 title: Listrak Email REST Split Test API description: '# Introduction Welcome to the Listrak Email REST API!' x-logo: url: /Email/Resources/Images/Logo.png servers: - url: https://api.listrak.com/email tags: - name: Split Test description: The SplitTest resource is used to retrieve information about automated email split tests. paths: /v1/List/{listId}/SplitTest: get: tags: - Split Test summary: Get all Split Tests description: Returns a collection of split tests for the specified list. operationId: SplitTest_GetSplitTestCollection parameters: - name: listId in: path description: Identifier used to locate the list. required: true schema: type: integer format: int32 - name: cursor in: query description: Value indicating the page of data that's being retrieved. The default value is `Start`. required: false schema: type: string - name: count in: query description: Number of data members to be displayed per page. The default value is `1000` and the maximum value is `5000`. required: false schema: type: string - name: startDate in: query description: The start of the date range used for filtering. required: false schema: type: string - name: endDate in: query description: The end of the date range used for filtering. required: false schema: type: string responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/CollectionPaged_SplitTest' example: status: 200 nextPageCursor: null data: - splitTestId: 0 splitTestName: null startDate: null endDate: null status: null testCriteria: null testType: null winnerMetric: null '400': description: BadRequest content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 400 error: ERROR_INVALID_PARAMETER message: An invalid value was supplied for {Parameter}. '404': description: NotFound content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 404 error: ERROR_UNABLE_TO_LOCATE_RESOURCE message: Unable to locate a resource associated with the listId supplied. '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 401 error: ERROR_UNAUTHORIZED message: Authorization was denied for this request. security: - OAuth 2: - List - Message x-code-samples: - lang: C# source: 'var client = new HttpClient(); client.BaseAddress = new Uri("https://api.listrak.com/email/"); client.DefaultRequestHeaders.Add("Authorization", "Bearer " + token); var response = await client.GetAsync("v1/List/{listId}/SplitTest"); ' - lang: PHP source: "$client = new \\GuzzleHttp\\Client([\n\t'base_uri' => 'https://api.listrak.com/email/'\n]);\n\n$res = $client->request('GET', 'v1/List/{listId}/SplitTest', [\n\t'headers' => ['Authorization' => 'Bearer ' . $accessToken]\n]);\n" /v1/List/{listId}/SplitTest/{splitTestId}: get: tags: - Split Test summary: Get a Split Test description: Returns the specified split test. operationId: SplitTest_GetSplitTestResource parameters: - name: listId in: path description: Identifier used to locate the list. required: true schema: type: integer format: int32 - name: splitTestId in: path description: Identifier used to locate the split test. required: true schema: type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Resource_SplitTest' example: status: 200 data: splitTestId: 0 splitTestName: null startDate: null endDate: null status: null testCriteria: null testType: null winnerMetric: null '400': description: BadRequest content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 400 error: ERROR_INVALID_PARAMETER message: An invalid value was supplied for {Parameter}. '404': description: NotFound content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 404 error: ERROR_UNABLE_TO_LOCATE_RESOURCE message: Unable to locate a resource associated with the listId and splitTestId supplied. '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 401 error: ERROR_UNAUTHORIZED message: Authorization was denied for this request. security: - OAuth 2: - List - Message x-code-samples: - lang: C# source: 'var client = new HttpClient(); client.BaseAddress = new Uri("https://api.listrak.com/email/"); client.DefaultRequestHeaders.Add("Authorization", "Bearer " + token); var response = await client.GetAsync("v1/List/{listId}/SplitTest/{splitTestId}"); ' - lang: PHP source: "$client = new \\GuzzleHttp\\Client([\n\t'base_uri' => 'https://api.listrak.com/email/'\n]);\n\n$res = $client->request('GET', 'v1/List/{listId}/SplitTest/{splitTestId}', [\n\t'headers' => ['Authorization' => 'Bearer ' . $accessToken]\n]);\n" /v1/List/{listId}/SplitTest/{splitTestId}/Message: get: tags: - Split Test summary: Get all Split Test Messages description: Returns a collection of messages for the specified split test. operationId: SplitTest_GetSplitTestMessageResources parameters: - name: listId in: path description: Identifier used to locate the list. required: true schema: type: integer format: int32 - name: splitTestId in: path description: Identifier used to locate the split test. required: true schema: type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/Collection_SplitTestMessage' example: status: 200 data: - messageId: 0 messageStatus: null messageType: null groupName: null segmentSize: null '400': description: BadRequest content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 400 error: ERROR_INVALID_PARAMETER message: An invalid value was supplied for {Parameter}. '404': description: NotFound content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 404 error: ERROR_UNABLE_TO_LOCATE_RESOURCE message: Unable to locate a resource associated with the listId and splitTestId supplied. '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' example: status: 401 error: ERROR_UNAUTHORIZED message: Authorization was denied for this request. security: - OAuth 2: - List - Message x-code-samples: - lang: C# source: 'var client = new HttpClient(); client.BaseAddress = new Uri("https://api.listrak.com/email/"); client.DefaultRequestHeaders.Add("Authorization", "Bearer " + token); var response = await client.GetAsync("v1/List/{listId}/SplitTest/{splitTestId}/Message"); ' - lang: PHP source: "$client = new \\GuzzleHttp\\Client([\n\t'base_uri' => 'https://api.listrak.com/email/'\n]);\n\n$res = $client->request('GET', 'v1/List/{listId}/SplitTest/{splitTestId}/Message', [\n\t'headers' => ['Authorization' => 'Bearer ' . $accessToken]\n]);\n" components: schemas: SplitTestMessage: description: A Split Test Message resource. type: object properties: messageId: format: int32 description: Identifier used to locate the message. type: integer messageStatus: description: Status displaying whether the message is scheduled, sending, sent, or not ready. type: string messageType: description: Type displaying whether the message is a split test group message or a remainder message. type: string groupName: description: The name of the split test group to which the message belongs. type: string segmentSize: format: int32 description: The percentage of recipients the message will be sent to. Will be null for remainder messages. type: integer SplitTest: description: A Split Test resource. type: object properties: splitTestId: format: int32 description: Identifier used to locate the split test. type: integer splitTestName: description: Name of the split test. type: string startDate: format: date-time description: Start date of the split test. type: string endDate: format: date-time description: End date of the split test. type: string status: description: Status of the split test. type: string testCriteria: description: Criteria that is being tested by the split test. type: string testType: description: Determines if the winning message is sent to a remainder group or not. type: string winnerMetric: description: Metric that is being used to evaluate a winner of the split test. type: string Error: type: object properties: status: format: int32 description: HTTP status code. type: integer error: description: Error code indicating what error has occured. type: string message: description: Message describing the status and the error that occurred. type: string Resource_SplitTest: type: object properties: status: format: int32 description: HTTP status code. type: integer data: $ref: '#/components/schemas/SplitTest' description: Return data. Collection_SplitTestMessage: type: object properties: status: format: int32 description: HTTP status code. type: integer data: description: Collection of return data from the given call. type: array items: $ref: '#/components/schemas/SplitTestMessage' CollectionPaged_SplitTest: type: object properties: status: format: int32 description: HTTP status code. type: integer nextPageCursor: description: URI of the next page of data. type: string data: description: Collection of data that exists on this paged view. type: array items: $ref: '#/components/schemas/SplitTest' x-tagGroups: - name: API Reference tags: - Campaign - Contact - ContactSegmentationField - Content - ContentFolder - Conversation - ConversationMessage - ConversationMessageActivity - ConversationMessageLink - ConversationMessageLinkClicker - ConversationMessageSummary - ConversationSummary - Event - EventGroup - Folder - IpPool - List - ListImport - ListImportContact - ListImportStatus - ListImportSummary - Message - MessageActivity - MessageLink - MessageLinkClicker - MessageStatus - MessageSummary - SavedAudience - SavedMessage - SegmentationField - SegmentationFieldGroup - SplitTest - TransactionalMessage - TransactionalMessageActivity - TransactionalMessageResend