# Watch MiFID passporting and branch changes

**Use case:** 

Watch related MiFID branch records for a head-office LEI on official ESMA registers. Replace the sample Deutsche Bank LEI with your head-office LEI. The first run is a BASELINE of current host countries, not proof those branches just opened. Repeat with the same Monitor key for branch and passporting changes.

## Input

```json
{
  "mode": "watchlist",
  "monitorKey": "task-passporting",
  "firms": [
    {
      "lei": "7LTWFZYICNSX8D621K86"
    }
  ],
  "includePermissions": false,
  "includePassporting": true,
  "includeSanctions": false,
  "changesOnly": true,
  "baselineMode": "emitSnapshot"
}
```

## Output

```json
{
  "entity_id": {
    "label": "Entity id",
    "format": "string"
  },
  "entity_name": {
    "label": "Entity name",
    "format": "string"
  },
  "record_type": {
    "label": "Record type",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "change_types": {
    "label": "Change types",
    "format": "array"
  },
  "authorisation_status": {
    "label": "Authorisation status",
    "format": "string"
  },
  "event_id": {
    "label": "Event id",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [ESMA MiFID Firm Permissions & Passporting Monitor](https://apify.com/automa-flow/esma-mifid-permissions-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automa-flow/esma-mifid-permissions-monitor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/automa-flow/esma-mifid-permissions-monitor.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
