---
agentTools:
  projectIndex: https://cmercuryapi.readme.io/llms.txt
---

# Get Unsubscribe Data of a campaign

Use this API to get the emails who have clicked on unsubscribe on the campaign.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Add Contact",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.cmercury.com/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/api/Report/Unsubscribe": {
      "post": {
        "summary": "Get Unsubscribe Data of a campaign",
        "description": "Use this API to get the emails who have clicked on unsubscribe on the campaign.",
        "operationId": "query-unsubscribe-data",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "X-Token",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "MessageID": {
                    "type": "integer",
                    "description": "The ID of the message or email campaign.",
                    "default": null,
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "67fe1e4a578fd20061cd6980:67fe1e4a578fd20061cd699a"
}
```