{
  "openapi": "3.0.4",
  "info": {
    "title": "Connect API",
    "description": "# Introduction\n\nThe Connect API lets you automate high-quality human data collection at scale. Create and manage\nprojects, recruit verified participants, collect structured responses, monitor progress, review work,\nand retrieve results without leaving your own systems.\n\nUse Connect for flexible research and business workflows—including studies, annotation, evaluation,\nand multi-round human feedback—as well as AI training and model evaluation. Projects created through\nthe API remain available in Connect under the account associated with the API credentials.\n\nThe Connect API utilizes standard REST API calls and returns JSON encoded responses.\n\n| Environment | |\n|--------------|----\n| Production | `https://connect-api.cloudresearch.com`\n\nThe status of the Connect API can be viewed at <a href='https://status.cloudresearch.com' target='_blank'>https://status.cloudresearch.com</a>.\n\n# Authentication\n\n## ApiKey\nThe Connect API uses API keys to authenticate requests. Create and manage your API keys from the <a href='https://connect.cloudresearch.com/researcher/api-keys' target='_blank'>API Keys page</a> in Connect researcher navigation.\n\nMake sure to keep your API keys secure! Do not share your secret API keys in publicly accessible areas.\n\nCalls to the API can be authenticated by putting the API key in the header using the key `X-API-KEY`.\n\n| Security Scheme Type | API Key     |\n|--------------|-------------\n| Header parameter name: | `X-API-KEY` \n\n# Rate Limit\n\nAt the moment we do not plan on enforcing rate limits to the API endpoints. However, we may need to\nenforce rate limiting in the future if we deem it necessary to provide a good experience for all our users.\n\n# Idempotency Tokens\n\nOur API supports idempotency to ensure an API operation is not executed twice. This is useful when you don't receive a response from the API because of a network failure. For example, if you create a project with an idempotency token, you can safely retry the call with the same token. Idempotency is supported on all API write operations, including <code>POST</code> requests such as creating or editing a project.\n\nTo use an idempotency token, provide an additional <code>IDEMPOTENCY-TOKEN: {token}</code> header to the request.\n\nIdempotency works by saving the resulting status code and body of the first request made for any given idempotency key. This happens regardless of whether an API call succeeds or fails. Subsequent requests to the same endpoint with the same key return the same result, including 500 errors.\n\nThe Idempotency token will expire after 24 hours so any call after that time with the same token will be treated as a new idempotency token.\n\nThere are some endpoints that require an idempotency token to ensure that the request is not processed multiple times.\nThe following endpoints require idempotency:\n- [Bonus](#tag/Assignments/paths/~1api~1v1~1assignments~1%7BprojectId%7D~1bonus/post)\n\n# Supported Languages\n\nSome of our API calls allow you to specify the languages that Participant can choose to take the Connect Project in.\nThe languages we currently support are:\n\n| Language | Code                        |\n|----------|-----------------------------|\n| English  | <span class='l-c'>en</span> |\n\n# Supported Locations\n\nSome of our API calls allow you to specify the locations that a Participant can complete your project from.\nIn order to specify one or multiple locations when creating or editing a project, \n1. Retrieve the appropriate values for the `What is your country of residence?` demographic from [List Demographics](#tag/Demographics/paths/~1api~1v1~1demographics~1list/get).\n2. Include those values in the `demographicTargeting` property in the request body of [Create a project](#tag/Project/paths/~1api~1v1~1project/post) or [Edit a project](#tag/Project/paths/~1api~1v1~1project~1%7BprojectId%7D/post).\n\nThe locations we currently support are:\n\n| Location       | Code                        |\n|----------------|-----------------------------|\n| United States  | <span class='l-c'>US</span> |\n| Australia      | <span class='l-c'>AU</span> |\n| Canada         | <span class='l-c'>CA</span> |\n| Ireland        | <span class='l-c'>IE</span> |\n| New Zealand    | <span class='l-c'>NZ</span> |\n| United Kingdom | <span class='l-c'>GB</span> |\n\n# Roadmap\n\nWe are planning on adding the following features to the API in the near future.\n\n### Multiple Completion Links\n\nThe ability to specify multiple completion links for a project. This will allow you to perform \ndifferent actions based on which link you redirect participants to.\n\n# Contact Us\n\nWe are actively working and developing the API. Please reach out with any questions to <a href=\"mailto:support@cloudresearch.com\">support@cloudresearch.com</a>.\n\n# Changelog\n**June 2026**\n- Added the `includeParticipantResponseData` query parameter to the `/assignments/{projectId}` endpoint. When `true`, each assignment includes a `demographics` array of the participant's demographic answers for the project (each with `demographicId`, `name`, `question`, and `value`), mirroring the demographic columns of the dashboard CSV download. Defaults to `false`.\n\n**March 2025**\n- Updated the `{projectId}/reject` endpoint by adding `ReasonForRejection` to capture rejection category and `ReasonForRejectionTypeOther` to store custom explanations when `Other` is selected.\n\n**October 2024**\n- When using `completionActions` with `partial completes` you must specify a payment and estimated time in minutes.\n\n**September 2024**\n- Removed `locations` from `demographicTargeting` in `/project` and `/project/{projectId}` endpoints.\n\n**August 2024**\n- Added `templateAssignment` property in the `/assignments/{projectId}` endpoint to retrieve template data for projects using task templates.\n- Added `account/validate-participants` endpoint to validate participant ids.\n- Added `assignments/{projectId}/submit` endpoint to submit assignments via the API.\n\n**July 2024**\n- Added support for `completionAction` in `completionSettings` for project endpoints\n\n**June 2024**\n- Updated API documentation\n- Added `scheduledEndTime` to project endpoints\n- Added `schedule` endpoint to manage scheduling project launches\n\n\n**May 2024**\n- Added support for specifying how many participants should take each task for template projects\n\n**March 2024**\n- Added support for managing participant groups\n- Added `daysToAutoApprove` to the project endpoints\n- Added support for conversations\n\n**August 2023**\n- Added support to create projects that do not use an external link\n",
    "version": "v1"
  },
  "paths": {
    "/api/v1/account": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Retrieves account information",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountInformation"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/account/validate-participants": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Validate Participant Ids",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/VerifyParticipantsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyParticipantsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/assignments/{projectId}": {
      "get": {
        "tags": [
          "Assignments"
        ],
        "summary": "Lists all assignments for a project",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The Id of the project",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeParticipantResponseData",
            "in": "query",
            "description": "When `true`, each assignment includes the participant's `demographics` (their demographic answers for the project),\nmirroring the demographic columns of the Researcher dashboard CSV download. Defaults to `false`.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the project's assignments",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAssignmentsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/assignments/{projectId}/approve": {
      "post": {
        "tags": [
          "Assignments"
        ],
        "summary": "Approve participants associated with a project",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ApproveParticipantsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/assignments/{projectId}/approve-all": {
      "post": {
        "tags": [
          "Assignments"
        ],
        "summary": "Approve All participants associated with a project",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ApproveAllParticipantsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/assignments/{projectId}/reject": {
      "post": {
        "tags": [
          "Assignments"
        ],
        "summary": "Reject participants associated with a project",
        "description": "Every rejected assignment needs to include a message as to why the assignment was rejected.\n            \nYour account balance will be credited with the amount that would have paid to\nthe participants plus any associated Connect fees.",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/RejectParticipantsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/assignments/{projectId}/bonus": {
      "post": {
        "tags": [
          "Assignments"
        ],
        "summary": "Bonus participants associated with a project",
        "description": "You will need to have enough funds in your account for the total amount plus any associated Connect fees.\nIf there is insufficient funds, then the bonuses will not go through for any of the participants.",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/BonusParticipantsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/assignments/{projectId}/reverse-reject": {
      "post": {
        "tags": [
          "Assignments"
        ],
        "summary": "Reverse Rejections for previously Rejected assignments for a project",
        "description": "Rejected assignments can be Approved even though they have been previously Rejected. Once\nApproved, the assignment can no longer be rejected. There must be enough money in your\naccount balance to pay these previously Rejected participants.",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ApproveParticipantsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/assignments/{projectId}/flag": {
      "post": {
        "tags": [
          "Assignments"
        ],
        "summary": "Flag participants associated with a project",
        "description": "Flagging a participant reports them to CloudResearch for quality, the same action as the \"Flag\" action\nwhen managing participants. Every flagged participant shares the single `reason` you provide.\nParticipants that have already been flagged cannot be flagged again.",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/FlagParticipantsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/assignments/{projectId}/submit": {
      "post": {
        "tags": [
          "Assignments"
        ],
        "summary": "Submit an assignment for a project",
        "description": "This endpoint is used to submit an assignment for a project. The assignment can only be submitted if\nthe assignment is in progress and has not been completed.",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SubmitAssignmentRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/conversations": {
      "get": {
        "tags": [
          "Conversations"
        ],
        "summary": "Lists all conversations for a researcher",
        "parameters": [
          {
            "name": "ParticipantId",
            "in": "query",
            "description": "The id of the participant",
            "schema": {
              "type": "string",
              "description": "The id of the participant",
              "nullable": true
            }
          },
          {
            "name": "Mailbox",
            "in": "query",
            "description": "The mailbox to filter the conversations by.\n\n\n\n`Inbox` - Default value. Returns all conversations in the inbox.\n\n\n`Starred` - Returns all conversations that have been starred.\n\n\n`Sent` - Returns all conversations that have been sent.\n\n\n`Archived` - Returns all conversations that have been archived.\n\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ConversationMailbox"
                }
              ],
              "description": "The mailbox to filter the conversations by.\n\n\n\n`Inbox` - Default value. Returns all conversations in the inbox.\n\n\n`Starred` - Returns all conversations that have been starred.\n\n\n`Sent` - Returns all conversations that have been sent.\n\n\n`Archived` - Returns all conversations that have been archived.\n\n"
            }
          },
          {
            "name": "StartTime",
            "in": "query",
            "description": "DateTime value must be in `ISO 8601 UTC` format.\n\nThe start time for the search. If not provided, then the StartTime will be set to 30 days ago.",
            "schema": {
              "type": "string",
              "description": "DateTime value must be in `ISO 8601 UTC` format.\n\nThe start time for the search. If not provided, then the StartTime will be set to 30 days ago.",
              "format": "date-time",
              "nullable": true
            }
          },
          {
            "name": "EndTime",
            "in": "query",
            "description": "DateTime value must be in `ISO 8601 UTC` format.\n\nThe end time for the search. If not provided, then will default to 30 days from the start time.",
            "schema": {
              "type": "string",
              "description": "DateTime value must be in `ISO 8601 UTC` format.\n\nThe end time for the search. If not provided, then will default to 30 days from the start time.",
              "format": "date-time",
              "nullable": true
            }
          },
          {
            "name": "Size",
            "in": "query",
            "description": "How many results to return. The default size is 10 and the max size is 100.",
            "schema": {
              "maximum": 100,
              "exclusiveMaximum": false,
              "minimum": 1,
              "exclusiveMinimum": false,
              "type": "integer",
              "description": "How many results to return. The default size is 10 and the max size is 100.",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "NextToken",
            "in": "query",
            "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
            "schema": {
              "type": "string",
              "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
              "nullable": true
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the researcher's conversations",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListConversationsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/conversations/bulk-messages": {
      "get": {
        "tags": [
          "Conversations"
        ],
        "summary": "Lists all bulk messages for a researcher",
        "parameters": [
          {
            "name": "Mailbox",
            "in": "query",
            "description": "The mailbox to filter the conversations by.\n\n\n\n`Sent` - Default value. Returns all conversations that have been sent.\n\n\n\n`Scheduled` - Returns all conversations that have been scheduled.\n\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BulkMessageMailbox"
                }
              ],
              "description": "The mailbox to filter the conversations by.\n\n\n\n`Sent` - Default value. Returns all conversations that have been sent.\n\n\n\n`Scheduled` - Returns all conversations that have been scheduled.\n\n"
            }
          },
          {
            "name": "StartTime",
            "in": "query",
            "description": "DateTime value must be in `ISO 8601 UTC` format.\n\nThe start time for the search. If not provided, then the StartTime will be set to 30 days ago.",
            "schema": {
              "type": "string",
              "description": "DateTime value must be in `ISO 8601 UTC` format.\n\nThe start time for the search. If not provided, then the StartTime will be set to 30 days ago.",
              "format": "date-time",
              "nullable": true
            }
          },
          {
            "name": "EndTime",
            "in": "query",
            "description": "DateTime value must be in `ISO 8601 UTC` format.\n\nThe end time for the search. If not provided, then will default to 30 days from the start time.",
            "schema": {
              "type": "string",
              "description": "DateTime value must be in `ISO 8601 UTC` format.\n\nThe end time for the search. If not provided, then will default to 30 days from the start time.",
              "format": "date-time",
              "nullable": true
            }
          },
          {
            "name": "Size",
            "in": "query",
            "description": "How many results to return. The default size is 10 and the max size is 100.",
            "schema": {
              "maximum": 100,
              "exclusiveMaximum": false,
              "minimum": 1,
              "exclusiveMinimum": false,
              "type": "integer",
              "description": "How many results to return. The default size is 10 and the max size is 100.",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "NextToken",
            "in": "query",
            "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
            "schema": {
              "type": "string",
              "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
              "nullable": true
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the researcher's bulk messages",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListBulkMessagesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/conversations/{conversationId}": {
      "get": {
        "tags": [
          "Conversations"
        ],
        "summary": "Lists all messages from a conversation",
        "description": "This endpoint can be used to list all messages from a provided conversation id for a particular account.",
        "parameters": [
          {
            "name": "conversationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the researcher's messages from a conversation",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListMessagesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/conversations/send-bulk-message": {
      "post": {
        "tags": [
          "Conversations"
        ],
        "summary": "Sends a bulk message to one or more participants",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SendBulkMessageRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/conversations/send-message": {
      "post": {
        "tags": [
          "Conversations"
        ],
        "summary": "Sends a message to a participant",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SendMessageRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/demographics/list": {
      "get": {
        "tags": [
          "Demographics"
        ],
        "summary": "Lists the demographics that you can use for targeting criteria",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListDemographicsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/demographics/feasibility": {
      "post": {
        "tags": [
          "Demographics"
        ],
        "summary": "Calculates feasibility for a project",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CalculateFeasibilityRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalculateFeasibilityResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/participant-groups": {
      "post": {
        "tags": [
          "Participant Groups"
        ],
        "summary": "Create a participant group",
        "description": "The participant group will be created.  Participants will be added to the group if they are included.",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateParticipantGroupRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the newly created participant group",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantGroupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Participant Groups"
        ],
        "summary": "List participant groups",
        "description": "Retrieve a list of participant groups.\nEach participant group in the list will not include every participant in the respective group.\nYou need to get a specific group to get the participants.",
        "parameters": [
          {
            "name": "Size",
            "in": "query",
            "description": "How many results to return. The default size is 10 and the max size is 100.",
            "schema": {
              "maximum": 100,
              "exclusiveMaximum": false,
              "minimum": 1,
              "exclusiveMinimum": false,
              "type": "integer",
              "description": "How many results to return. The default size is 10 and the max size is 100.",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "NextToken",
            "in": "query",
            "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
            "schema": {
              "type": "string",
              "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
              "nullable": true
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of participant groups",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListParticipantGroupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/participant-groups/{participantGroupId}": {
      "get": {
        "tags": [
          "Participant Groups"
        ],
        "summary": "Retrieve participant group by ID",
        "description": "Retrieve a participant group specified by ID.  The response will include the participants in the group.",
        "parameters": [
          {
            "name": "participantGroupId",
            "in": "path",
            "description": "The unique identifier of the participant group.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the specified participant group",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantGroupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Participant Groups"
        ],
        "summary": "Update participant group",
        "description": "Updates a participant group specified by id\nThe group name or description may be updated.  Leaving a value null will designate that value to remain unchanged.\nA list of participants can optionally be included which will OVERWRITE the current participants in the group.",
        "parameters": [
          {
            "name": "participantGroupId",
            "in": "path",
            "description": "The unique identifier of the participant group.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateParticipantGroupRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated participant group",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantGroupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/participant-groups/{participantGroupId}/settings": {
      "post": {
        "tags": [
          "Participant Groups"
        ],
        "summary": "Update participant group settings",
        "parameters": [
          {
            "name": "participantGroupId",
            "in": "path",
            "description": "The unique identifier of the participant group.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateParticipantGroupSettingsRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated participant group",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantGroupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/participant-groups/{participantGroupId}/add-participants": {
      "post": {
        "tags": [
          "Participant Groups"
        ],
        "summary": "Add participants to a group",
        "description": "Adds participants to the specified group",
        "parameters": [
          {
            "name": "participantGroupId",
            "in": "path",
            "description": "The unique identifier of the participant group.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateParticipantsInGroupRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the participant group with the updated participant list",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantGroupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/participant-groups/{participantGroupId}/remove-participants": {
      "post": {
        "tags": [
          "Participant Groups"
        ],
        "summary": "Remove participants from a group",
        "description": "Removes participants from the specified group",
        "parameters": [
          {
            "name": "participantGroupId",
            "in": "path",
            "description": "The unique identifier of the participant group.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateParticipantsInGroupRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the participant group with the updated participant list",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParticipantGroupResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/project": {
      "post": {
        "tags": [
          "Project"
        ],
        "summary": "Create a project",
        "description": "The project will be created in a unpublished state and will need to be launched to start collecting data.",
        "parameters": [
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CreateProjectRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the newly created project",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Project"
        ],
        "summary": "List projects",
        "description": "This endpoint can be used to list all projects for a particular account. The projects are\nordered by their creation time in descending order, so newer projects will come first in the results.",
        "parameters": [
          {
            "name": "Status",
            "in": "query",
            "description": "Filter to list projects that have are in a particular status",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ProjectStatus"
                }
              ]
            }
          },
          {
            "name": "Size",
            "in": "query",
            "description": "How many results to return. The default size is 10 and the max size is 100.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "NextToken",
            "in": "query",
            "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a list of projects",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListProjectsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/project/{projectId}": {
      "get": {
        "tags": [
          "Project"
        ],
        "summary": "Retrieve a project by id",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the specified project",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Project"
        ],
        "summary": "Edit a project",
        "description": "An unpublished project can be fully edited.\nOnce a project is published editing is limited to certain fields. All you need to provide is the information you want to update,\neverything else will stay the same.\n            \nFor projects that have already been published, you can increase the amount of participants. The number of participants passed via the request\nshould be the total number of participants for the project. The system will automatically calculate how many more participants\nto add. You must have enough funds in your account to cover the cost of the additional participants. Adding participants to an already completed\nproject, will automatically make the project available for new participants.\n\nCurrently, you cannot edit a task template project once it is made live.",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/EditProjectRequest"
                  },
                  {
                    "$ref": "#/components/schemas/EditAlreadyLaunchedProjectRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated project",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/project/{projectId}/update-status": {
      "post": {
        "tags": [
          "Project"
        ],
        "summary": "Update the status of your project",
        "description": "When a project's status is updated to `Live` participants will start taking your survey. There must be available funds in the account\nbalance before transitioning a Project to `Live`, otherwise you will receive an insufficient funds error message.\n            \n- `Unpublished`- Can transition to `Live` and `Archived`\n- `Live` - Can only transition to `Paused`\n- `WaitingToGoLive` - Project is in queue to go live. You cannot manually set this status and the project will automatically transition to `Live` when processed.\n- `Paused` - Can only transition to `Live` or `Closed`\n- `Completed` - Project will be automatically set to `Completed` when all spots are filled.\n- `Finalized` - Project will be automatically set to `Finalized` 30 days after the project completes. You cannot set this status manually. Can only transition to `Archived`.\n- `Closed` - You can close out a project that is `Live` or `Paused`. If the project still has participants taking it then the call will fail. Once a project is closed it cannot be reopened.\n- `Archived` - Once a project is `Archived` it cannot be edited or launched.\n- `ScheduledToGoLive` - Projects that are scheduled to go live at a future date. You can only manage scheduled projects using the [schedule endpoint](#tag/Project/paths/~1api~1v1~1project~1%7BprojectId%7D~1schedule/post)",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/UpdateProjectStatusRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/project/{projectId}/schedule": {
      "post": {
        "tags": [
          "Project"
        ],
        "summary": "Manage the scheduled time of a project",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IDEMPOTENCY-TOKEN",
            "in": "header",
            "description": "Your Idempotency token",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ScheduleProjectRequest"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/project/{projectId}/statistics": {
      "get": {
        "tags": [
          "Project"
        ],
        "summary": "Retrieve a project's statistics",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-KEY",
            "in": "header",
            "description": "Your API key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the project's statistics",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectStatisticsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized for invalid API key or unauthorized resource",
            "headers": {
              "X-TRACE-ID": {
                "description": "Trace Id of the request. Useful for debugging purposes.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountInformation": {
        "type": "object",
        "properties": {
          "availableBalance": {
            "type": "number",
            "description": "The available balance that is left in your account",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ApproveAllParticipantsRequest": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApproveParticipantsRequest": {
        "required": [
          "participants"
        ],
        "type": "object",
        "properties": {
          "participants": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChangeParticipantStatusRequest"
            }
          }
        },
        "additionalProperties": false
      },
      "Assignment": {
        "type": "object",
        "properties": {
          "participantId": {
            "type": "string",
            "description": "The id of the participant",
            "nullable": true
          },
          "assignmentId": {
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "type": "string",
            "description": "When the participant started the project",
            "format": "date-time"
          },
          "completionTime": {
            "type": "string",
            "description": "When the participant completed the project",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AssignmentsStatus"
              }
            ],
            "description": "The status of the assignments"
          },
          "payment": {
            "type": "number",
            "description": "The amount in USD that you will pay",
            "format": "double"
          },
          "bonus": {
            "type": "number",
            "description": "How much the participant has been bonused for this project",
            "format": "double"
          },
          "completion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ParticipantCompletion"
              }
            ],
            "description": "Information on how the participant submitted the project",
            "nullable": true
          },
          "templateAssignment": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateAssignment"
              }
            ],
            "description": "The task data associated with this assignment. Will be `null` if the project is not a task template project.",
            "nullable": true
          },
          "demographics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParticipantDemographic"
            },
            "description": "The participant's demographic answers for this project, mirroring the demographic columns of the non-admin Researcher dashboard CSV download. Only present when the request is made with `includeParticipantResponseData=true` (an empty array if the project has no included demographics); omitted otherwise. Each item exposes `demographicId` (the demographic id), `name` (the demographic title used as the CSV column header), `question` (the question text), and `value` (the participant's answer, formatted as text). Demographics hidden from the CSV download are excluded.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AssignmentsStatus": {
        "enum": [
          "Pending",
          "Approved",
          "Rejected"
        ],
        "type": "string"
      },
      "BaseParticipantGroup": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the participant group",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "A description of the participant group",
            "nullable": true
          },
          "participantGroupId": {
            "type": "string",
            "description": "The unique identifier of the participant group",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When the participant group was created",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "description": "When the participant group was last modified",
            "format": "date-time"
          },
          "isOnUniversalBlockList": {
            "type": "boolean",
            "description": "If the participant group is on the universal block list"
          }
        },
        "additionalProperties": false
      },
      "BaseProjectResponse": {
        "required": [
          "completionSettings",
          "demographicTargeting",
          "deviceRequirements",
          "estimatedTimeInMinutes",
          "name",
          "participants",
          "payment",
          "systemRequirements"
        ],
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "description": "The id of the Project.",
            "nullable": true
          },
          "name": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string",
            "description": "Name of your Connect project. This is visible to participants."
          },
          "projectUrl": {
            "type": "string",
            "description": "The URL of your survey (e.g. Qualtrics)",
            "nullable": true
          },
          "payment": {
            "type": "number",
            "description": "The amount in USD that you will pay",
            "format": "double"
          },
          "estimatedTimeInMinutes": {
            "minimum": 1,
            "type": "integer",
            "description": "How long in minutes you estimate a participant to complete your project",
            "format": "int32"
          },
          "participants": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "integer",
            "description": "The amount of participants",
            "format": "int32"
          },
          "summary": {
            "maxLength": 5000,
            "type": "string",
            "description": "Summary of your project",
            "nullable": true
          },
          "instructions": {
            "type": "string",
            "description": "Custom html instructions that are displayed to participants before beginning your project. The max size\nlimit for\nthe instructions is 20MB.",
            "nullable": true
          },
          "internalName": {
            "maxLength": 500,
            "type": "string",
            "description": "The internal name for your project. This will not be visible to participants.",
            "nullable": true
          },
          "systemRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SystemRequirement"
            },
            "description": "Additional requirements that your project needs in order for the participant to take your project. An\nempty array means that there are no\nadditional requirements."
          },
          "hasSensitiveContent": {
            "type": "boolean",
            "description": "Indicates that your project has content that can be considered sensitive content."
          },
          "deviceRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeviceType"
            },
            "description": "All the devices that the participant can use to take the project. An empty array allows all options."
          },
          "completionSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CompletionSettingsRequest"
              }
            ]
          },
          "maxTimeInMinutes": {
            "type": "integer",
            "description": "The maximum amount of minutes a participant will have to submit the project. Needs to be greater than\n`estimatedTimeInMinutes`. If this\nvalue is null then by default the maximum time will be set to a system optimized value based on your\nestimated time.",
            "format": "int32",
            "nullable": true
          },
          "demographicTargeting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DemographicTargeting"
              }
            ],
            "description": "The demographic targeting criteria for your project"
          },
          "platformTargeting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlatformTargeting"
              }
            ],
            "description": "The platform targeting criteria for your project",
            "nullable": true
          },
          "taskTemplate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskTemplate"
              }
            ],
            "description": "The task template settings for your project",
            "nullable": true
          },
          "daysToAutoApprove": {
            "maximum": 14,
            "minimum": 0,
            "type": "integer",
            "description": "The amount of days to wait before auto approving a pending assignment. If no value is specified then \nthe system default will be used (14 days). A value of 0 will\nauto approve the assignment immediately after a participant submits.",
            "format": "int32",
            "nullable": true
          },
          "scheduledEndTime": {
            "type": "string",
            "description": "The time (in UTC) the project will automatically pause if it does not receive all the participants it needs. If there\nis no value then the project will remain `Live` until it is paused or receives the target number of participants.",
            "format": "date-time",
            "nullable": true
          },
          "totalCost": {
            "type": "number",
            "description": "The total cost of the project including Connect fees",
            "format": "double"
          },
          "createdAt": {
            "type": "string",
            "description": "The UTC time the Project was created at",
            "format": "date-time"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectStatus"
              }
            ],
            "description": "The status of the project"
          },
          "scheduledToGoLiveAt": {
            "type": "string",
            "description": "The time when your project will be scheduled to go live.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BonusParticipant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The id of the participant or assignment",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "The message to display to the participant",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "description": "Amount to bonus",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "BonusParticipantsRequest": {
        "required": [
          "bonusPayments"
        ],
        "type": "object",
        "properties": {
          "bonusPayments": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BonusParticipant"
            },
            "description": "List of bonus payments"
          }
        },
        "additionalProperties": false
      },
      "BulkMessageMailbox": {
        "enum": [
          "Sent",
          "Scheduled"
        ],
        "type": "string"
      },
      "BulkMessages": {
        "type": "object",
        "properties": {
          "bulkMessageId": {
            "type": "string",
            "description": "The id of the bulk message",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "The subject name of the bulk message",
            "nullable": true
          },
          "participantIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of ids for the participants",
            "nullable": true
          },
          "senderId": {
            "type": "string",
            "description": "The id of who created the conversation",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CalculateFeasibilityRequest": {
        "type": "object",
        "properties": {
          "estimatedTimeInMinutes": {
            "type": "integer",
            "description": "How long in minutes you estimate a participant to complete your project",
            "format": "int32"
          },
          "participants": {
            "type": "integer",
            "description": "The amount of participants",
            "format": "int32"
          },
          "payment": {
            "type": "number",
            "description": "The amount in USD that you will pay",
            "format": "double"
          },
          "targetingCriteria": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DemographicTargeting"
              }
            ],
            "description": "Custom criteria for targeting participants",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CalculateFeasibilityResponse": {
        "type": "object",
        "properties": {
          "totalProjectCost": {
            "type": "number",
            "description": "Total cost of the project. Null if the project is not feasible.",
            "format": "double",
            "nullable": true
          },
          "availablePlatforms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Platform"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ChangeParticipantStatusRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The participant or assignment id to approve or reject",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "The message to display to the participant",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompletionAction": {
        "required": [
          "actions",
          "code",
          "label"
        ],
        "type": "object",
        "properties": {
          "code": {
            "minLength": 1,
            "type": "string",
            "description": "The code associated with the completion action. This needs to be unique across all completion actions. You\ncan choose to show this code to the participant or redirect them to a URL using the RedirectUrl, which has the code\nembedded in the URL."
          },
          "label": {
            "minLength": 1,
            "type": "string",
            "description": "A friendly name to associate with the completion action. This needs to be unique across all completion actions."
          },
          "actions": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompletionActionSystemAction"
            },
            "description": "The system actions to perform when a Participant is associated with this completion action."
          },
          "redirectUrl": {
            "type": "string",
            "description": "Redirect url to send the participant to when the completion action is triggered. This uses the code specified.",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CompletionActionSettings": {
        "required": [
          "completionActions"
        ],
        "type": "object",
        "properties": {
          "completionActions": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompletionAction"
            },
            "description": "The completion actions for your project. Limit of 10 actions."
          }
        },
        "additionalProperties": false
      },
      "CompletionActionSystemAction": {
        "type": "object",
        "properties": {
          "systemAction": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SystemAction"
              }
            ],
            "description": "The system actions to perform. You can only use `PartialComplete` if your account has access to this feature.\nContact us for more details."
          },
          "payment": {
            "type": "number",
            "description": "The Payment associated with this completion action. This is only applicable if the SystemAction is `PartialComplete`\nor `Reject`. For a `PartialComplete` action, the pay per hour must meet our minimum requirement.",
            "format": "double",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "The message to display to Participants. This needs to be set for `Reject`\nand `PartialComplete`",
            "nullable": true
          },
          "estimatedTimeInMinutes": {
            "type": "number",
            "description": "The estimated time in minutes for the completion action. This is only applicable if the SystemAction is `PartialComplete`.",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompletionSettingsRequest": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          },
          "projectCompletionType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectCompletionType"
              }
            ]
          },
          "completionActionSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CompletionActionSettings"
              }
            ],
            "description": "The completion action settings for your project. This can only be used when the ProjectCompletionType is set to `CompletionActions`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Conversation": {
        "type": "object",
        "properties": {
          "conversationId": {
            "type": "string",
            "description": "The id of the conversation",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "The subject name of the conversation",
            "nullable": true
          },
          "participantId": {
            "type": "string",
            "description": "The id of the participant",
            "nullable": true
          },
          "senderId": {
            "type": "string",
            "description": "The id of who created the conversation",
            "nullable": true
          },
          "hasUnreadMessage": {
            "type": "boolean",
            "description": "Indicates if the conversation has unread messages"
          }
        },
        "additionalProperties": false
      },
      "ConversationMailbox": {
        "enum": [
          "Inbox",
          "Starred",
          "Sent",
          "Archived"
        ],
        "type": "string"
      },
      "CreateParticipantGroupRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string",
            "description": "The name of the participant group"
          },
          "description": {
            "type": "string",
            "description": "A description of the participant group",
            "nullable": true
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of participant IDs of the participants in the group",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateProjectRequest": {
        "required": [
          "completionSettings",
          "demographicTargeting",
          "deviceRequirements",
          "estimatedTimeInMinutes",
          "name",
          "participants",
          "payment",
          "systemRequirements"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string",
            "description": "Name of your Connect project. This is visible to participants."
          },
          "projectUrl": {
            "type": "string",
            "description": "The URL of your survey (e.g. Qualtrics)",
            "nullable": true
          },
          "payment": {
            "type": "number",
            "description": "The amount in USD that you will pay",
            "format": "double"
          },
          "estimatedTimeInMinutes": {
            "minimum": 1,
            "type": "integer",
            "description": "How long in minutes you estimate a participant to complete your project",
            "format": "int32"
          },
          "participants": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "integer",
            "description": "The amount of participants",
            "format": "int32"
          },
          "summary": {
            "maxLength": 5000,
            "type": "string",
            "description": "Summary of your project",
            "nullable": true
          },
          "instructions": {
            "type": "string",
            "description": "Custom html instructions that are displayed to participants before beginning your project. The max size\nlimit for\nthe instructions is 20MB.",
            "nullable": true
          },
          "internalName": {
            "maxLength": 500,
            "type": "string",
            "description": "The internal name for your project. This will not be visible to participants.",
            "nullable": true
          },
          "systemRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SystemRequirement"
            },
            "description": "Additional requirements that your project needs in order for the participant to take your project. An\nempty array means that there are no\nadditional requirements."
          },
          "hasSensitiveContent": {
            "type": "boolean",
            "description": "Indicates that your project has content that can be considered sensitive content."
          },
          "deviceRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeviceType"
            },
            "description": "All the devices that the participant can use to take the project. An empty array allows all options."
          },
          "completionSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CompletionSettingsRequest"
              }
            ]
          },
          "maxTimeInMinutes": {
            "type": "integer",
            "description": "The maximum amount of minutes a participant will have to submit the project. Needs to be greater than\n`estimatedTimeInMinutes`. If this\nvalue is null then by default the maximum time will be set to a system optimized value based on your\nestimated time.",
            "format": "int32",
            "nullable": true
          },
          "demographicTargeting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DemographicTargeting"
              }
            ],
            "description": "The demographic targeting criteria for your project"
          },
          "platformTargeting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlatformTargeting"
              }
            ],
            "description": "The platform targeting criteria for your project",
            "nullable": true
          },
          "taskTemplate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskTemplate"
              }
            ],
            "description": "The task template settings for your project",
            "nullable": true
          },
          "daysToAutoApprove": {
            "maximum": 14,
            "minimum": 0,
            "type": "integer",
            "description": "The amount of days to wait before auto approving a pending assignment. If no value is specified then \nthe system default will be used (14 days). A value of 0 will\nauto approve the assignment immediately after a participant submits.",
            "format": "int32",
            "nullable": true
          },
          "scheduledEndTime": {
            "type": "string",
            "description": "The time (in UTC) the project will automatically pause if it does not receive all the participants it needs. If there\nis no value then the project will remain `Live` until it is paused or receives the target number of participants.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DataLabelingMetadata": {
        "required": [
          "prompt"
        ],
        "type": "object",
        "properties": {
          "prompt": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string",
            "description": "The question text that will be presented to the participant"
          },
          "dataLabelingResponseMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DataLabelingResponseMethod"
              }
            ],
            "description": "The type of response the participant will give"
          },
          "dataLabelingSelectOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataLabelingSelectOption"
            },
            "description": "Choice options that the participant can select from. Only valid for `SelectOne` and `SelectAll`\nDataLabelingResponseMethod",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "DataLabelingResponseMethod": {
        "enum": [
          "TypedResponse",
          "SelectOne",
          "SelectAll"
        ],
        "type": "string"
      },
      "DataLabelingSelectOption": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Demographic": {
        "type": "object",
        "properties": {
          "demographicId": {
            "type": "string",
            "description": "Demographic Id that will be needed to be included when creating targeting criteria",
            "nullable": true
          },
          "question": {
            "type": "string",
            "description": "The question that was asked to the participants",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "The category of the demographic",
            "nullable": true
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DemographicOption"
            },
            "description": "For single and multiple choice questions, the options that were presented to the participants",
            "nullable": true
          },
          "rangeRequirements": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DemographicRequirementRange"
              }
            ],
            "description": "For questions that will require a range of values when targeting participants, this is the range that is required",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DemographicOption": {
        "type": "object",
        "properties": {
          "demographicOptionId": {
            "type": "string",
            "description": "Demographic option id that will be needed to be included when creating targeting criteria",
            "nullable": true
          },
          "value": {
            "type": "string",
            "description": "The specific option that was presented to the participants",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DemographicQuota": {
        "type": "object",
        "properties": {
          "demographicId": {
            "type": "string",
            "nullable": true
          },
          "demographicOptionIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of demographic options where targeted participants must have one of the requirements in the list. This\noption is required for single and multiple choice questions.",
            "nullable": true
          },
          "rangeRequirements": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DemographicRequirementRange"
              }
            ],
            "description": "When using a demographic that requires a range of values, this is the range that is required",
            "nullable": true
          },
          "target": {
            "type": "integer",
            "description": "How many participants are being targeted for this demographic requirement",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DemographicRequirement": {
        "type": "object",
        "properties": {
          "quotas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DemographicQuota"
            },
            "description": "The demographics that will be used to target participants eligible to take part in the project.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DemographicRequirementRange": {
        "type": "object",
        "properties": {
          "lower": {
            "type": "integer",
            "description": "The lower bound of the range",
            "format": "int32"
          },
          "upper": {
            "type": "integer",
            "description": "The upper bound of the range including the value itself",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DemographicTargeting": {
        "type": "object",
        "properties": {
          "targetOption": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DemographicTargetingOption"
              }
            ],
            "description": "The Demographic targeting option you want to use for your project\n\n\n\n`GenPop` - Open to everyone without any targeting criteria\n\n\n`GenderSplit` - Targets a breakdown between gender\n\n\n`CensusMatched` - Target a Census matched template\n\n"
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The languages participants will need to know to complete your Project. See [Supported\nLanguages](#section/Supported-Languages) for possible values.",
            "nullable": true
          },
          "demographicRequirements": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DemographicRequirement"
              }
            ],
            "description": "Demographic requirements for the project to target a specific audience.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DemographicTargetingOption": {
        "enum": [
          "GenPop",
          "GenderSplit",
          "CensusMatched",
          "Custom"
        ],
        "type": "string"
      },
      "DeviceType": {
        "enum": [
          "Desktop",
          "Tablet",
          "Mobile",
          "Other"
        ],
        "type": "string"
      },
      "EditAlreadyLaunchedProjectRequest": {
        "required": [
          "name",
          "participants",
          "projectUrl"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 500,
            "type": "string",
            "description": "Name of your Connect project. This is visible to participants."
          },
          "projectUrl": {
            "type": "string",
            "description": "The URL of your survey (e.g. Qualtrics)"
          },
          "participants": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "integer",
            "description": "The final target number of participants that you want for the project. You will be charged for the additional\nnumber of participants. This number needs to be greater than the current number of participants.",
            "format": "int32"
          },
          "summary": {
            "maxLength": 5000,
            "type": "string",
            "description": "Summary of your project",
            "nullable": true
          },
          "instructions": {
            "type": "string",
            "description": "Custom html instructions that are displayed to participants before beginning your project. The max size\nlimit for\nthe instructions is 20MB.",
            "nullable": true
          },
          "internalName": {
            "maxLength": 500,
            "type": "string",
            "description": "The internal name for your project. This will not be visible to participants.",
            "nullable": true
          },
          "scheduledEndTime": {
            "type": "string",
            "description": "The time (in UTC) the project will automatically pause if it does not receive all the participants it needs. If there\nis no value then the project will remain `Live` until it is paused or receives the target number of participants.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EditProjectRequest": {
        "required": [
          "completionSettings",
          "demographicTargeting",
          "deviceRequirements",
          "estimatedTimeInMinutes",
          "name",
          "participants",
          "payment",
          "systemRequirements"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 500,
            "minLength": 1,
            "type": "string",
            "description": "Name of your Connect project. This is visible to participants."
          },
          "projectUrl": {
            "type": "string",
            "description": "The URL of your survey (e.g. Qualtrics)",
            "nullable": true
          },
          "payment": {
            "type": "number",
            "description": "The amount in USD that you will pay",
            "format": "double"
          },
          "estimatedTimeInMinutes": {
            "minimum": 1,
            "type": "integer",
            "description": "How long in minutes you estimate a participant to complete your project",
            "format": "int32"
          },
          "participants": {
            "minimum": 0,
            "exclusiveMinimum": true,
            "type": "integer",
            "description": "The amount of participants",
            "format": "int32"
          },
          "summary": {
            "maxLength": 5000,
            "type": "string",
            "description": "Summary of your project",
            "nullable": true
          },
          "instructions": {
            "type": "string",
            "description": "Custom html instructions that are displayed to participants before beginning your project. The max size\nlimit for\nthe instructions is 20MB.",
            "nullable": true
          },
          "internalName": {
            "maxLength": 500,
            "type": "string",
            "description": "The internal name for your project. This will not be visible to participants.",
            "nullable": true
          },
          "systemRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SystemRequirement"
            },
            "description": "Additional requirements that your project needs in order for the participant to take your project. An\nempty array means that there are no\nadditional requirements."
          },
          "hasSensitiveContent": {
            "type": "boolean",
            "description": "Indicates that your project has content that can be considered sensitive content."
          },
          "deviceRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DeviceType"
            },
            "description": "All the devices that the participant can use to take the project. An empty array allows all options."
          },
          "completionSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CompletionSettingsRequest"
              }
            ]
          },
          "maxTimeInMinutes": {
            "type": "integer",
            "description": "The maximum amount of minutes a participant will have to submit the project. Needs to be greater than\n`estimatedTimeInMinutes`. If this\nvalue is null then by default the maximum time will be set to a system optimized value based on your\nestimated time.",
            "format": "int32",
            "nullable": true
          },
          "demographicTargeting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DemographicTargeting"
              }
            ],
            "description": "The demographic targeting criteria for your project"
          },
          "platformTargeting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlatformTargeting"
              }
            ],
            "description": "The platform targeting criteria for your project",
            "nullable": true
          },
          "taskTemplate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TaskTemplate"
              }
            ],
            "description": "The task template settings for your project",
            "nullable": true
          },
          "daysToAutoApprove": {
            "maximum": 14,
            "minimum": 0,
            "type": "integer",
            "description": "The amount of days to wait before auto approving a pending assignment. If no value is specified then \nthe system default will be used (14 days). A value of 0 will\nauto approve the assignment immediately after a participant submits.",
            "format": "int32",
            "nullable": true
          },
          "scheduledEndTime": {
            "type": "string",
            "description": "The time (in UTC) the project will automatically pause if it does not receive all the participants it needs. If there\nis no value then the project will remain `Live` until it is paused or receives the target number of participants.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorDetails": {
        "type": "object",
        "properties": {
          "error": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ValidationProblemDetails"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FlagParticipantsRequest": {
        "required": [
          "participants",
          "reason"
        ],
        "type": "object",
        "properties": {
          "participants": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The ids of the participants or assignments to flag"
          },
          "reason": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string",
            "description": "The reason these participants are being flagged"
          }
        },
        "additionalProperties": false
      },
      "FullParticipantGroup": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the participant group",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "A description of the participant group",
            "nullable": true
          },
          "participantGroupId": {
            "type": "string",
            "description": "The unique identifier of the participant group",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "description": "When the participant group was created",
            "format": "date-time"
          },
          "lastModified": {
            "type": "string",
            "description": "When the participant group was last modified",
            "format": "date-time"
          },
          "isOnUniversalBlockList": {
            "type": "boolean",
            "description": "If the participant group is on the universal block list"
          },
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParticipantGroupParticipant"
            },
            "description": "The list of participants in the participant group",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ListAssignmentsResponse": {
        "type": "object",
        "properties": {
          "assignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Assignment"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ListBulkMessagesResponse": {
        "type": "object",
        "properties": {
          "bulkMessages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkMessages"
            },
            "description": "The bulk messages that match the search criteria",
            "nullable": true
          },
          "nextToken": {
            "type": "string",
            "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ListConversationsResponse": {
        "type": "object",
        "properties": {
          "conversations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Conversation"
            },
            "description": "The Conversations that match the search criteria",
            "nullable": true
          },
          "nextToken": {
            "type": "string",
            "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ListDemographicsResponse": {
        "type": "object",
        "properties": {
          "demographics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Demographic"
            },
            "description": "Demographics that can be used to target a specific audience.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ListMessagesResponse": {
        "type": "object",
        "properties": {
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Message"
            },
            "description": "The messages on the conversation",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ListParticipantGroupResponse": {
        "type": "object",
        "properties": {
          "nextToken": {
            "type": "string",
            "description": "A unique identifier that can be used to retrieve the next set of results. The token will expire after an hour.",
            "nullable": true
          },
          "participantGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BaseParticipantGroup"
            },
            "description": "The list of Participant Groups",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ListProjectsResponse": {
        "type": "object",
        "properties": {
          "nextToken": {
            "type": "string",
            "nullable": true
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BaseProjectResponse"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Message": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The message as html",
            "nullable": true
          },
          "sentAt": {
            "type": "string",
            "description": "The time the message was sent",
            "format": "date-time"
          },
          "senderId": {
            "type": "string",
            "description": "The id of who created the conversation",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ParticipantCompletion": {
        "type": "object",
        "properties": {
          "completionCode": {
            "type": "string",
            "description": "The code the participant submitted when completing the Project or `null` if completed using a redirect\nlink",
            "nullable": true
          },
          "submissionType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubmissionType"
              }
            ],
            "description": "The submission method used by the participant to complete the project"
          }
        },
        "additionalProperties": false
      },
      "ParticipantDemographic": {
        "type": "object",
        "properties": {
          "demographicId": {
            "type": "string",
            "nullable": true
          },
          "question": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ParticipantGroupParticipant": {
        "type": "object",
        "properties": {
          "participantId": {
            "type": "string",
            "description": "The identifier of the participant in the participant group",
            "nullable": true
          },
          "insertionDate": {
            "type": "string",
            "description": "When this participant was added to the participant group",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ParticipantGroupResponse": {
        "type": "object",
        "properties": {
          "participantGroup": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FullParticipantGroup"
              }
            ],
            "description": "The Participant Group",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ParticipantStatus": {
        "enum": [
          "Valid",
          "Invalid"
        ],
        "type": "string"
      },
      "Platform": {
        "enum": [
          "Connect",
          "ManagedResearch"
        ],
        "type": "string"
      },
      "PlatformParticipantsTargeting": {
        "type": "object",
        "properties": {
          "includedParticipants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The participant ids that should be allowed to take this project",
            "nullable": true
          },
          "excludedParticipants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The participant ids that should be prevented from taking this project",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlatformProjectsTargeting": {
        "type": "object",
        "properties": {
          "includedProjects": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The project ids that participants should be allowed from taking this project",
            "nullable": true
          },
          "excludedProjects": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The project ids that participants should be excluded from taking this project",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PlatformTargeting": {
        "type": "object",
        "properties": {
          "participants": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlatformParticipantsTargeting"
              }
            ],
            "description": "The participant targeting criteria",
            "nullable": true
          },
          "projects": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PlatformProjectsTargeting"
              }
            ],
            "description": "The project targeting criteria",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProjectCompletionType": {
        "enum": [
          "RedirectUrl",
          "CompletionCode",
          "Template",
          "CompletionActions"
        ],
        "type": "string"
      },
      "ProjectResponse": {
        "type": "object",
        "properties": {
          "project": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BaseProjectResponse"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProjectStatistics": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "description": "The id of the Project.",
            "nullable": true
          },
          "pendingAssignments": {
            "type": "integer",
            "description": "The number of assignments that have not yet been approved or rejected.",
            "format": "int32"
          },
          "completedAssignments": {
            "type": "integer",
            "description": "The number of assignments that have been approved or rejected.",
            "format": "int32"
          },
          "inProgress": {
            "type": "integer",
            "description": "The number of participants currently taking your project",
            "format": "int32"
          },
          "approvedAssignments": {
            "type": "integer",
            "description": "The number of assignments that have been approved.",
            "format": "int32"
          },
          "completionRate": {
            "type": "number",
            "description": "Rate of total number of participants who started your project to how many actually completed it",
            "format": "double"
          },
          "bounceRate": {
            "type": "number",
            "description": "Rate of total number of participants who started your project to how many did not complete it",
            "format": "double"
          },
          "averageDuration": {
            "type": "number",
            "description": "Average time duration in minutes of completed assignments",
            "format": "double"
          },
          "medianDuration": {
            "type": "number",
            "description": "Median time duration in minutes of completed assignments",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ProjectStatisticsResponse": {
        "type": "object",
        "properties": {
          "statistics": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectStatistics"
              }
            ],
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProjectStatus": {
        "enum": [
          "Unpublished",
          "Paused",
          "Live",
          "Closed",
          "Completed",
          "Archived",
          "Error",
          "ScheduledToGoLive",
          "Finalized",
          "WaitingToGoLive"
        ],
        "type": "string"
      },
      "ProjectTemplateType": {
        "enum": [
          "DataLabeling",
          "CustomHtml"
        ],
        "type": "string"
      },
      "ReasonForParticipantRejection": {
        "enum": [
          "LowQuality",
          "NotQualified",
          "Incomplete",
          "Other"
        ],
        "type": "string"
      },
      "RejectParticipantStatusRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The participant or assignment id to approve or reject",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "The message to display to the participant",
            "nullable": true
          },
          "reasonForRejection": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ReasonForParticipantRejection"
              }
            ],
            "description": "The reason for rejecting the participant",
            "nullable": true
          },
          "reasonForRejectionTypeOther": {
            "type": "string",
            "description": "The reason for rejecting the participant if the reason is type \"Other\"",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RejectParticipantsRequest": {
        "required": [
          "participants"
        ],
        "type": "object",
        "properties": {
          "participants": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RejectParticipantStatusRequest"
            }
          }
        },
        "additionalProperties": false
      },
      "ScheduleProjectRequest": {
        "type": "object",
        "properties": {
          "scheduledToGoLiveAt": {
            "type": "string",
            "description": "The time when your project will be scheduled to go live. This will automatically set the project status to `ScheduledToGoLive`.\nTo cancel a scheduled launch pass in null to the request.",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ScheduledDeliveryAtProjectEvent": {
        "enum": [
          "ProjectMadeLive"
        ],
        "type": "string"
      },
      "SendBulkMessageRequest": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "description": "The project id associated with the conversation.",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Subject of the new conversation.",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Body of the message.",
            "nullable": true
          },
          "participantIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Participant ids to message.",
            "nullable": true
          },
          "scheduledDelivery": {
            "type": "string",
            "description": "Scheduled delivery time for the message.",
            "format": "date-time",
            "nullable": true
          },
          "scheduledDeliveryAtProjectEvent": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ScheduledDeliveryAtProjectEvent"
              }
            ],
            "description": "Scheduled delivery at project event.\n\n`ProjectMadeLive` - The message will be delivered when the project is made live.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SendMessageRequest": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "description": "The project id associated with the conversation.",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Subject of the new conversation.",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Body of the message.",
            "nullable": true
          },
          "recipientId": {
            "type": "string",
            "description": "Participant id to message.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmissionType": {
        "enum": [
          "CompletionCode",
          "Redirect"
        ],
        "type": "string"
      },
      "SubmitAssignmentRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The id of the participant or assignment",
            "nullable": true
          },
          "code": {
            "type": "string",
            "description": "The completion code for this assignment. This should only be set if\nthe project is a non-template project.",
            "nullable": true
          },
          "templateData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateAssignmentSubmittedData"
              }
            ],
            "description": "The submitted assignment data used for a task based project. This should only be set if your project is\na template project.",
            "nullable": true
          },
          "tag": {
            "type": "string",
            "description": "A user-defined tag that can be associated with this assignment.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SystemAction": {
        "enum": [
          "ManualReview",
          "Approve",
          "PartialComplete"
        ],
        "type": "string"
      },
      "SystemRequirement": {
        "enum": [
          "Audio",
          "Camera",
          "Microphone",
          "DownloadSoftware",
          "Writing"
        ],
        "type": "string"
      },
      "TaskTemplate": {
        "required": [
          "data",
          "headers",
          "settings",
          "taskTemplateType"
        ],
        "type": "object",
        "properties": {
          "taskTemplateType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectTemplateType"
              }
            ],
            "description": "The type of task template."
          },
          "headers": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The header columns for your data. All values need to be unique and match the numbers of\ncells in your data."
          },
          "data": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskTemplateDataRow"
            },
            "description": "The data that should be distributed to participants"
          },
          "settings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateSettings"
              }
            ],
            "description": "Template settings"
          }
        },
        "additionalProperties": false
      },
      "TaskTemplateDataCell": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "description": "The value of the cell",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskTemplateDataRow": {
        "type": "object",
        "properties": {
          "cells": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskTemplateDataCell"
            },
            "description": "All the data cells",
            "nullable": true
          },
          "participants": {
            "minimum": 1,
            "type": "integer",
            "description": "The number of different participants you want to take this task. Defaults to 1. The sum of all participants\nneeds to be equal to the number of participants in the project.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TemplateAssignment": {
        "type": "object",
        "properties": {
          "templateAssignmentId": {
            "type": "string",
            "description": "The Template Assignment Id",
            "nullable": true
          },
          "taskData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateDataRow"
              }
            ],
            "description": "The input task data used for this particular assignment",
            "nullable": true,
            "readOnly": true
          },
          "submittedData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateAssignmentSubmittedData"
              }
            ],
            "description": "The submitted data for this assignment",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "TemplateAssignmentSubmittedData": {
        "type": "object",
        "properties": {
          "data": {
            "description": "The submitted data for the task. If you collect all the task information on your server then you can supply an empty object for `taskData`.\n\n```json\n{\n    \"taskData\": {\n        // Any arbitrary json object\n    }\n}",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "TemplateDataCell": {
        "type": "object",
        "properties": {
          "cellData": {
            "type": "string",
            "nullable": true
          },
          "columnHeader": {
            "type": "string",
            "nullable": true
          },
          "dataType": {
            "type": "string",
            "nullable": true
          },
          "position": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": { }
      },
      "TemplateDataRow": {
        "type": "object",
        "properties": {
          "rowData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateDataCell"
            },
            "nullable": true
          },
          "position": {
            "type": "integer",
            "format": "int32"
          },
          "participants": {
            "type": "integer",
            "description": "The amount of participants that should be assigned to this task. By default, each task is available to one participant.",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "TemplateSettings": {
        "type": "object",
        "properties": {
          "htmlTemplateMarkup": {
            "type": "string",
            "description": "The html template markup. Should only be set if the template type is `CustomHtml`.",
            "nullable": true
          },
          "dataLabelingSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DataLabelingMetadata"
              }
            ],
            "description": "Data Labeling Settings. Should only be set if the template type is `DataLabeling`.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateParticipantGroupRequest": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "A description of the participant group",
            "nullable": true
          },
          "name": {
            "maxLength": 500,
            "type": "string",
            "description": "The name of the participant group",
            "nullable": true
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The new list of Participants, specified by IDs, to be included in this group.\nIf the list it not empty, this list will overwrite the current participants in the group.\nAll existing participants will be removed and replaced with participants in this list.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateParticipantGroupSettingsRequest": {
        "type": "object",
        "properties": {
          "isOnUniversalBlockList": {
            "type": "boolean",
            "description": "If the participant group is on the universal block list"
          }
        },
        "additionalProperties": false
      },
      "UpdateParticipantsInGroupRequest": {
        "type": "object",
        "properties": {
          "participantIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of participant IDs of the participants in the group",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateProjectStatusRequest": {
        "required": [
          "status"
        ],
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectStatus"
              }
            ],
            "description": "The status of the project."
          }
        },
        "additionalProperties": false
      },
      "ValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "VerifyParticipantStatus": {
        "type": "object",
        "properties": {
          "participantId": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ParticipantStatus"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "VerifyParticipantsRequest": {
        "required": [
          "participants"
        ],
        "type": "object",
        "properties": {
          "participants": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Participant Ids. Limited to 1,000 participants ids per request."
          }
        },
        "additionalProperties": false
      },
      "VerifyParticipantsResponse": {
        "type": "object",
        "properties": {
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VerifyParticipantStatus"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "Connect API uses an API key to authenticate the API. Contact us to create an API key.",
        "name": "X-API-KEY",
        "in": "header"
      }
    }
  },
  "security": [
    { }
  ],
  "tags": [
    {
      "name": "Account"
    },
    {
      "name": "Assignments"
    },
    {
      "name": "Conversations"
    },
    {
      "name": "Demographics"
    },
    {
      "name": "Participant Groups"
    },
    {
      "name": "Project"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Start here",
      "tags": [
        "Account"
      ]
    },
    {
      "name": "Projects and targeting",
      "tags": [
        "Project",
        "Demographics",
        "Participant Groups"
      ]
    },
    {
      "name": "Results and review",
      "tags": [
        "Assignments"
      ]
    },
    {
      "name": "Communication",
      "tags": [
        "Conversations"
      ]
    }
  ]
}