{
  "info": {
    "_postman_id": "45708e77-458a-4e00-b6a7-baa0d83a99e2",
    "name": "Optimizely Campaign REST Assets Unsubscribes 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:28:05.000Z",
    "updatedAt": "2026-07-28T02:28:05.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-45708e77-458a-4e00-b6a7-baa0d83a99e2"
  },
  "item": [
    {
      "name": "{clientId}",
      "item": [
        {
          "name": "unsubscribes",
          "item": [
            {
              "name": "List unsubscribes",
              "id": "fd627205-73aa-4be7-a317-27ce8ca4b811",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/:clientId/unsubscribes",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ":clientId",
                    "unsubscribes"
                  ],
                  "variable": [
                    {
                      "id": "652024e8-5edb-4567-998a-554c88a2be75",
                      "key": "clientId",
                      "value": "<string>",
                      "description": "(Required) The unique identifier for the Optimizely Campaign client"
                    }
                  ]
                },
                "description": "Returns a list of recipients who have unsubscribed from communications."
              },
              "response": [
                {
                  "id": "f1ea9355-e4f5-413a-bc67-013ad6efd681",
                  "name": "Successfully retrieved unsubscribes",
                  "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}}/:clientId/unsubscribes",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":clientId",
                        "unsubscribes"
                      ],
                      "variable": [
                        {
                          "key": "clientId"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "[\n  {\n    \"email\": \"<email>\",\n    \"unsubscribed_at\": \"<dateTime>\",\n    \"reason\": \"<string>\"\n  },\n  {\n    \"email\": \"<email>\",\n    \"unsubscribed_at\": \"<dateTime>\",\n    \"reason\": \"<string>\"\n  }\n]",
                  "createdAt": "2026-07-28T02:28:05.000Z",
                  "updatedAt": "2026-07-28T02:28:05.000Z",
                  "uid": "35240-f1ea9355-e4f5-413a-bc67-013ad6efd681"
                },
                {
                  "id": "77f1cb0a-be45-419c-a4a0-d26ab30a0025",
                  "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}}/:clientId/unsubscribes",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":clientId",
                        "unsubscribes"
                      ],
                      "variable": [
                        {
                          "key": "clientId"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:28:05.000Z",
                  "updatedAt": "2026-07-28T02:28:05.000Z",
                  "uid": "35240-77f1cb0a-be45-419c-a4a0-d26ab30a0025"
                }
              ],
              "createdAt": "2026-07-28T02:28:05.000Z",
              "updatedAt": "2026-07-28T02:28:05.000Z",
              "uid": "35240-fd627205-73aa-4be7-a317-27ce8ca4b811"
            },
            {
              "name": "Add an unsubscribe",
              "id": "6a92c242-1bf8-4db8-9711-d5396d57cbab",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"email\": \"<email>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/:clientId/unsubscribes",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    ":clientId",
                    "unsubscribes"
                  ],
                  "variable": [
                    {
                      "id": "f519618a-2365-439e-ab29-947ce57c12cc",
                      "key": "clientId",
                      "value": "<string>",
                      "description": "(Required) The unique identifier for the Optimizely Campaign client"
                    }
                  ]
                },
                "description": "Adds a recipient to the unsubscribe list."
              },
              "response": [
                {
                  "id": "78a86732-55a2-4a2f-92af-2ee546675eed",
                  "name": "Unsubscribe successfully added",
                  "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  \"email\": \"<email>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/:clientId/unsubscribes",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":clientId",
                        "unsubscribes"
                      ],
                      "variable": [
                        {
                          "key": "clientId"
                        }
                      ]
                    }
                  },
                  "status": "Created",
                  "code": 201,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:28:05.000Z",
                  "updatedAt": "2026-07-28T02:28:05.000Z",
                  "uid": "35240-78a86732-55a2-4a2f-92af-2ee546675eed"
                },
                {
                  "id": "92db6a00-5106-4746-aadc-8b6e391e2bae",
                  "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  \"email\": \"<email>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/:clientId/unsubscribes",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":clientId",
                        "unsubscribes"
                      ],
                      "variable": [
                        {
                          "key": "clientId"
                        }
                      ]
                    }
                  },
                  "status": "Bad Request",
                  "code": 400,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:28:05.000Z",
                  "updatedAt": "2026-07-28T02:28:05.000Z",
                  "uid": "35240-92db6a00-5106-4746-aadc-8b6e391e2bae"
                },
                {
                  "id": "b70eb417-ac06-40bb-9900-a0adaab2388e",
                  "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  \"email\": \"<email>\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/:clientId/unsubscribes",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        ":clientId",
                        "unsubscribes"
                      ],
                      "variable": [
                        {
                          "key": "clientId"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T02:28:05.000Z",
                  "updatedAt": "2026-07-28T02:28:05.000Z",
                  "uid": "35240-b70eb417-ac06-40bb-9900-a0adaab2388e"
                }
              ],
              "createdAt": "2026-07-28T02:28:05.000Z",
              "updatedAt": "2026-07-28T02:28:05.000Z",
              "uid": "35240-6a92c242-1bf8-4db8-9711-d5396d57cbab"
            }
          ],
          "id": "cca2f7fc-5914-4999-be0e-3fcda8f6344e",
          "createdAt": "2026-07-28T02:28:05.000Z",
          "updatedAt": "2026-07-28T02:28:05.000Z",
          "uid": "35240-cca2f7fc-5914-4999-be0e-3fcda8f6344e"
        }
      ],
      "id": "7f325e56-d4e9-4632-b120-a7deb6492c26",
      "createdAt": "2026-07-28T02:28:05.000Z",
      "updatedAt": "2026-07-28T02:28:05.000Z",
      "uid": "35240-7f325e56-d4e9-4632-b120-a7deb6492c26"
    }
  ],
  "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"
    }
  ]
}