{
  "info": {
    "_postman_id": "973b1177-0f5e-4740-a2e9-52bf5403ecdb",
    "name": "Optimizely Campaign REST Assets Environments API",
    "description": "The Optimizely Campaign REST API provides programmatic access to Optimizely's email and omnichannel campaign management capabilities. Developers can use the API to manage campaigns, recipients, mailing lists, smart campaigns, transactional mails, and messaging workflows. The API is hosted at api.campaign.episerver.net and supports automation of marketing campaign operations, enabling integration with external systems and custom marketing workflows. The base URL includes the client ID for multi-tenant access.\n\nContact Support:\n Name: Optimizely Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T02:27:05.000Z",
    "updatedAt": "2026-07-28T02:27:05.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-973b1177-0f5e-4740-a2e9-52bf5403ecdb"
  },
  "item": [
    {
      "name": "environments",
      "item": [
        {
          "name": "{environment_id}",
          "item": [
            {
              "name": "Get an environment",
              "id": "29bbd395-6931-491f-8379-1188d5db964c",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/environments/:environment_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "environments",
                    ":environment_id"
                  ],
                  "variable": [
                    {
                      "id": "db169498-efa4-40a3-a632-8c7fcd4db26b",
                      "key": "environment_id",
                      "value": "<long>",
                      "description": "(Required) The unique identifier for the environment"
                    }
                  ]
                },
                "description": "Retrieves the details of a specific environment."
              },
              "response": [
                {
                  "id": "14e0557a-929d-40e9-8104-5cbed099d684",
                  "name": "Successfully retrieved the environment",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: basic",
                        "key": "Authorization",
                        "value": "Basic <credentials>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/environments/:environment_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "environments",
                        ":environment_id"
                      ],
                      "variable": [
                        {
                          "key": "environment_id"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"id\": \"<long>\",\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"project_id\": \"<long>\",\n  \"is_primary\": \"<boolean>\",\n  \"sdk_key\": \"<string>\",\n  \"datafile_url\": \"<uri>\",\n  \"created\": \"<dateTime>\"\n}",
                  "createdAt": "2026-07-28T02:27:06.000Z",
                  "updatedAt": "2026-07-28T02:27:06.000Z",
                  "uid": "35240-14e0557a-929d-40e9-8104-5cbed099d684"
                },
                {
                  "id": "ddf532ca-6346-4584-83be-688b9c2b6082",
                  "name": "Authentication credentials are missing or invalid",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: basic",
                        "key": "Authorization",
                        "value": "Basic <credentials>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/environments/:environment_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "environments",
                        ":environment_id"
                      ],
                      "variable": [
                        {
                          "key": "environment_id"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:27:06.000Z",
                  "updatedAt": "2026-07-28T02:27:06.000Z",
                  "uid": "35240-ddf532ca-6346-4584-83be-688b9c2b6082"
                },
                {
                  "id": "f1080f52-8d0e-4ac6-bea9-fa9d644ede0c",
                  "name": "Environment not found",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: basic",
                        "key": "Authorization",
                        "value": "Basic <credentials>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/environments/:environment_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "environments",
                        ":environment_id"
                      ],
                      "variable": [
                        {
                          "key": "environment_id"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:27:06.000Z",
                  "updatedAt": "2026-07-28T02:27:06.000Z",
                  "uid": "35240-f1080f52-8d0e-4ac6-bea9-fa9d644ede0c"
                }
              ],
              "createdAt": "2026-07-28T02:27:06.000Z",
              "updatedAt": "2026-07-28T02:27:06.000Z",
              "uid": "35240-29bbd395-6931-491f-8379-1188d5db964c"
            },
            {
              "name": "Update an environment",
              "id": "fcfe13dd-209d-4e03-9841-d3894a19beb0",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "PATCH",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/environments/:environment_id",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "environments",
                    ":environment_id"
                  ],
                  "variable": [
                    {
                      "id": "9a7d9ba5-9898-4f82-bf01-ddb15dcf08a8",
                      "key": "environment_id",
                      "value": "<long>",
                      "description": "(Required) The unique identifier for the environment"
                    }
                  ]
                },
                "description": "Updates the specified environment with the provided fields."
              },
              "response": [
                {
                  "id": "ba2517ed-4068-4367-b77a-ad8865d657ea",
                  "name": "Environment successfully updated",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: basic",
                        "key": "Authorization",
                        "value": "Basic <credentials>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/environments/:environment_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "environments",
                        ":environment_id"
                      ],
                      "variable": [
                        {
                          "key": "environment_id"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"id\": \"<long>\",\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"project_id\": \"<long>\",\n  \"is_primary\": \"<boolean>\",\n  \"sdk_key\": \"<string>\",\n  \"datafile_url\": \"<uri>\",\n  \"created\": \"<dateTime>\"\n}",
                  "createdAt": "2026-07-28T02:27:06.000Z",
                  "updatedAt": "2026-07-28T02:27:06.000Z",
                  "uid": "35240-ba2517ed-4068-4367-b77a-ad8865d657ea"
                },
                {
                  "id": "ba8756f2-89e5-4d43-9c5d-497867eec8f5",
                  "name": "Invalid request body",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: basic",
                        "key": "Authorization",
                        "value": "Basic <credentials>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/environments/:environment_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "environments",
                        ":environment_id"
                      ],
                      "variable": [
                        {
                          "key": "environment_id"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:27:06.000Z",
                  "updatedAt": "2026-07-28T02:27:06.000Z",
                  "uid": "35240-ba8756f2-89e5-4d43-9c5d-497867eec8f5"
                },
                {
                  "id": "abd92918-1a85-46d0-9ffc-c8a9f4b60212",
                  "name": "Authentication credentials are missing or invalid",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: basic",
                        "key": "Authorization",
                        "value": "Basic <credentials>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/environments/:environment_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "environments",
                        ":environment_id"
                      ],
                      "variable": [
                        {
                          "key": "environment_id"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:27:06.000Z",
                  "updatedAt": "2026-07-28T02:27:06.000Z",
                  "uid": "35240-abd92918-1a85-46d0-9ffc-c8a9f4b60212"
                },
                {
                  "id": "ac36b6b6-f67d-4007-95f8-1925369ed124",
                  "name": "Environment not found",
                  "originalRequest": {
                    "method": "PATCH",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: basic",
                        "key": "Authorization",
                        "value": "Basic <credentials>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/environments/:environment_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "environments",
                        ":environment_id"
                      ],
                      "variable": [
                        {
                          "key": "environment_id"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:27:06.000Z",
                  "updatedAt": "2026-07-28T02:27:06.000Z",
                  "uid": "35240-ac36b6b6-f67d-4007-95f8-1925369ed124"
                }
              ],
              "createdAt": "2026-07-28T02:27:06.000Z",
              "updatedAt": "2026-07-28T02:27:06.000Z",
              "uid": "35240-fcfe13dd-209d-4e03-9841-d3894a19beb0"
            }
          ],
          "id": "da6a3f44-7191-4f0f-a025-fe72bce57103",
          "createdAt": "2026-07-28T02:27:06.000Z",
          "updatedAt": "2026-07-28T02:27:06.000Z",
          "uid": "35240-da6a3f44-7191-4f0f-a025-fe72bce57103"
        },
        {
          "name": "List environments",
          "id": "ca743201-e5fe-4443-aacc-5ae42edfb747",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/environments?project_id=<long>",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "environments"
              ],
              "query": [
                {
                  "description": "(Required) The unique identifier for the project to filter by",
                  "key": "project_id",
                  "value": "<long>"
                }
              ]
            },
            "description": "Returns a list of environments for the specified project. Environments allow developing, staging, and deploying experiment configurations independently."
          },
          "response": [
            {
              "id": "d9233a8f-9e60-4795-9ed7-f1f9be0773eb",
              "name": "Successfully retrieved the list of environments",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: basic",
                    "key": "Authorization",
                    "value": "Basic <credentials>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/environments?project_id=<long>",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "environments"
                  ],
                  "query": [
                    {
                      "description": "(Required) The unique identifier for the project to filter by",
                      "key": "project_id",
                      "value": "<long>"
                    }
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "[\n  {\n    \"id\": \"<long>\",\n    \"key\": \"<string>\",\n    \"name\": \"<string>\",\n    \"project_id\": \"<long>\",\n    \"is_primary\": \"<boolean>\",\n    \"sdk_key\": \"<string>\",\n    \"datafile_url\": \"<uri>\",\n    \"created\": \"<dateTime>\"\n  },\n  {\n    \"id\": \"<long>\",\n    \"key\": \"<string>\",\n    \"name\": \"<string>\",\n    \"project_id\": \"<long>\",\n    \"is_primary\": \"<boolean>\",\n    \"sdk_key\": \"<string>\",\n    \"datafile_url\": \"<uri>\",\n    \"created\": \"<dateTime>\"\n  }\n]",
              "createdAt": "2026-07-28T02:27:06.000Z",
              "updatedAt": "2026-07-28T02:27:06.000Z",
              "uid": "35240-d9233a8f-9e60-4795-9ed7-f1f9be0773eb"
            },
            {
              "id": "5c7bce61-e0e9-48e0-a8a1-fcb62242afc0",
              "name": "Authentication credentials are missing or invalid",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "description": "Added as a part of security scheme: basic",
                    "key": "Authorization",
                    "value": "Basic <credentials>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/environments?project_id=<long>",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "environments"
                  ],
                  "query": [
                    {
                      "description": "(Required) The unique identifier for the project to filter by",
                      "key": "project_id",
                      "value": "<long>"
                    }
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T02:27:06.000Z",
              "updatedAt": "2026-07-28T02:27:06.000Z",
              "uid": "35240-5c7bce61-e0e9-48e0-a8a1-fcb62242afc0"
            }
          ],
          "createdAt": "2026-07-28T02:27:06.000Z",
          "updatedAt": "2026-07-28T02:27:06.000Z",
          "uid": "35240-ca743201-e5fe-4443-aacc-5ae42edfb747"
        },
        {
          "name": "Create an environment",
          "id": "026ff946-6b3c-49a9-96ee-b593e4d8b5bc",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/environments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "environments"
              ]
            },
            "description": "Creates a new environment within the specified project."
          },
          "response": [
            {
              "id": "22ecceaa-4054-4507-ac5f-f86f82114b9f",
              "name": "Environment successfully created",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: basic",
                    "key": "Authorization",
                    "value": "Basic <credentials>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/environments",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "environments"
                  ]
                }
              },
              "status": "Created",
              "code": 201,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"id\": \"<long>\",\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"project_id\": \"<long>\",\n  \"is_primary\": \"<boolean>\",\n  \"sdk_key\": \"<string>\",\n  \"datafile_url\": \"<uri>\",\n  \"created\": \"<dateTime>\"\n}",
              "createdAt": "2026-07-28T02:27:06.000Z",
              "updatedAt": "2026-07-28T02:27:06.000Z",
              "uid": "35240-22ecceaa-4054-4507-ac5f-f86f82114b9f"
            },
            {
              "id": "f3e38a69-56c6-4921-831c-6ecdb38051b8",
              "name": "Invalid request body",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: basic",
                    "key": "Authorization",
                    "value": "Basic <credentials>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/environments",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "environments"
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T02:27:06.000Z",
              "updatedAt": "2026-07-28T02:27:06.000Z",
              "uid": "35240-f3e38a69-56c6-4921-831c-6ecdb38051b8"
            },
            {
              "id": "4ca66e42-6faa-49b1-b906-1a66ee075226",
              "name": "Authentication credentials are missing or invalid",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: basic",
                    "key": "Authorization",
                    "value": "Basic <credentials>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"key\": \"<string>\",\n  \"name\": \"<string>\",\n  \"is_primary\": \"<boolean>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/environments",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "environments"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T02:27:06.000Z",
              "updatedAt": "2026-07-28T02:27:06.000Z",
              "uid": "35240-4ca66e42-6faa-49b1-b906-1a66ee075226"
            }
          ],
          "createdAt": "2026-07-28T02:27:06.000Z",
          "updatedAt": "2026-07-28T02:27:06.000Z",
          "uid": "35240-026ff946-6b3c-49a9-96ee-b593e4d8b5bc"
        }
      ],
      "id": "7d15a248-1b1c-4fc6-ad9f-823155cd72c7",
      "createdAt": "2026-07-28T02:27:06.000Z",
      "updatedAt": "2026-07-28T02:27:06.000Z",
      "uid": "35240-7d15a248-1b1c-4fc6-ad9f-823155cd72c7"
    }
  ],
  "auth": {
    "type": "basic",
    "basic": [
      {
        "key": "username",
        "value": "{{basicAuthUsername}}",
        "type": "string"
      },
      {
        "key": "password",
        "value": "{{basicAuthPassword}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.campaign.episerver.net/rest"
    }
  ]
}