# Authentication

To interact with the **Mews Connector API**, you need to authenticate your requests using `ClientToken` and `AccessToken`. These tokens are supplied as parameters in the request body, ensuring that only authorized clients can access and manipulate data.

* `ClientToken`: Unique to your application, serving as the identifier of the API client.
* `AccessToken`: Unique to the connection with a property (referred to as an enterprise in the API), identifying the property or properties whose data and services you can access.
* `Client`: The name and version of the client application you are integrating with Mews.

> **Environment-specific**: Note that each Mews environment (e.g., demo, production) requires a different set of tokens.

## Access Tokens

A unique `AccessToken` is generated for each new enterprise (property) using your connection. This allows your application to access the data for that enterprise via the API.

### Portfolio Access Tokens

Access Tokens typically allow access to a single, named enterprise. However, some tokens may be Portfolio Access Tokens, which facilitate multi-property operations. These tokens grant access to more than one enterprise with a single token. For more information, see [Multi-property](/connector-api/concepts/multi-property.md).

## Obtaining your tokens

### Demo environment

Public tokens are available for the demo environment. For more details, see [Environments](/connector-api/guidelines/environments.md).

### Production environment

To receive credentials for production usage, you must successfully complete a [certification process](/connector-api/your-journey.md). After certification:

1. Your integration profile will be created.
2. You will automatically receive a unique `ClientToken`, which remains the same for all connections in the production environment.
3. A unique `AccessToken` will be generated and shared with you for each enterprise requesting to connect their Mews profile to your system.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mews.com/connector-api/guidelines/authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
