> ## Documentation Index
> Fetch the complete documentation index at: https://docs.watchdog.no/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Medius to Watchdog

> Connect Medius to Watchdog and grant access to invoices and documents.

Connect Medius to retrieve supplier invoices and their documents in Watchdog.

## Before you begin

Ask your Medius administrator to prepare the access described below. You will need:

| Detail        | Description                                                                                          |
| ------------- | ---------------------------------------------------------------------------------------------------- |
| Tenant        | Your company's segment in the Medius address, such as `acme` in `https://cloud.mediusflow.com/acme/` |
| Client ID     | The client ID for Watchdog                                                                           |
| Client Secret | The secret belonging to that client ID                                                               |

## Connect in Watchdog

1. Open **Integrations → Medius** and add a connection.
2. Enter the three details.
3. Select **Test Connection**, then save the connection once access has been checked.

## For the Medius administrator

1. Open **Medius Administration → Client Applications** and create a client application for Watchdog.
2. Select **Client Credentials** as the authentication method (`Grant Type`).
3. Enable the `Integration` and `Integration.Export` scopes.
4. Enable the client application itself.
5. Copy the client ID and client secret into the Watchdog setup.

Keep the client secret secure. Watchdog uses this access to retrieve invoices and documents; it does not change invoices in Medius.

See [Medius' API sign-in guide](https://www.postman.com/medius-developers/medius-public-api/documentation/t3bdd2t/login).

## If the connection test cannot finish

Watchdog needs a sample posted invoice to check the setup. If the error says this sample is missing, ask your administrator to make an existing invoice with status `posted` and tag `FINAL` available through the API. Then run the test again.

For sign-in failures, also check that the application is enabled and uses **Client Credentials**.
