# Get all environments Endpoint: GET /environments Version: 5.1.42 Security: api_key ## Query parameters: - `page_number` (integer) The page number for which to get environments. This will default to the first page if excluded - `page_size` (integer) The maximum number of objects to return. This will default to the DefaultApiPageSize setting if not provided - `application_id` (integer) The ID of the application to get all environments from ## Response 200 fields (application/json): - `_pageInfo` (object) - `_pageInfo.numberOnPage` (integer) The number of items on this page. This should always match the page size unless it is the last page. - `_pageInfo.total` (integer) The total number of items - `responseList` (array) Example: [{"environmentName":"test_env","applicationId":"1","purpose":"MASK"}] - `responseList.environmentId` (integer) The ID of the Environment. This field will be generated by the Masking Engine. - `responseList.environmentName` (string, required) The name for this Environment. Note that it must be unique among Environments. Example: "test_env" - `responseList.applicationId` (integer, required) The ID of the associated application. Example: "1" - `responseList.applicationName` (string) The Name of the associated application. - `responseList.purpose` (string, required) The purpose of this Environment. Environments with a 'MASK' purpose will have access to Masking and Profiling jobs, whereas Environments with a 'TOKENIZE' purpose will have access to Tokenization and Re-Identification jobs. Note that any custom purposes created through the UI will be represented as 'MASK' purposes, due to the jobs that they have access to. Enum: "MASK", "TOKENIZE" - `responseList.isWorkflowEnabled` (boolean) True to have workflow enabled, false to leave the workflow disabled. ## Response 400 fields ## Response 403 fields