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

# Authentication

> Sign in with your browser, or use an API key.

## What is this?

The **Workspace MCP** gives you two ways in: **sign in through your browser** (no key to copy or store), or an **API key**, the same key you use for the API, for scripts and apps that can't open a browser. Either way the assistant acts as you, with your permissions.

## What can I do here?

* Connect an app by signing in and choosing the one channel it may work in
* Make a connection read only, or revoke it at any time
* Create or copy an API key and send it in the right header
* Understand the extra checks MCP applies

## How to use it

### Sign in with your browser (Workspace MCP)

Add the server URL to your app (see [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md) for each client). The app opens your browser, you sign in to your account, and a **Connect** page asks you to:

1. Pick the **Channel** the app may work in. It stays in that channel unless you turn on **Let it switch channels** below; otherwise, to use another channel, connect again.
2. Optionally turn on **Read only** (it can look at data but can't change anything or send messages) and **Let it switch channels**.
3. Click **Allow access**.

No API key and no `X-Channel-Id` header are needed — a channel header is ignored on a browser-signed-in connection. Your account does not need the **API Access** permission for this; you approve the app and its channel yourself. Only connect apps you trust: it acts as you in that channel.

Apps you've connected this way are listed under **Connected apps** in the Developer Portal's MCP tab. Click **Revoke access** to cut one off at once; it has to sign in again to come back. Access stays valid while the app is in use and is renewed automatically; it ends if you revoke it, you lose the channel, or your account is disabled.

### Or use an API key

#### 1. Get your API key

Open the [Developer Portal](https://docs.wappigate.com/workspace/developer-portal.md) → **API Keys** and generate or copy your key. Opening the Developer Portal needs the **API Access** permission — ask an administrator to grant it if you can't see **Developer** in the profile menu.

> [!WARNING]
>
> Treat the key like a password. Keep it out of shared files and repositories. If it leaks, regenerate it.

#### 2. Send it as a header

Send the key as `Authorization: Bearer <API_KEY>` (preferred) or `X-API-Key: <API_KEY>`. Never put it in the URL.

Send `Authorization: Bearer <API_KEY>` and `X-Channel-Id: <CHANNEL_ID>` (or `?channelId=` for clients that can't set headers).

Find your channel ids with **List channels** (the `list_channels` tool, or the Workspace API's channels endpoint). The channel must be one you own or are assigned to — there is no default channel.

### What else is checked

**Workspace MCP**

1. With an API key, the key's owner has the **API Access** permission. With browser sign-in, you approved the app on the **Connect** page.
2. MCP is allowed on your installation and enabled for the platform, **and** the owner's plan includes **MCP**.
3. The credential is used on the address of the platform it belongs to.
4. The channel is one the owner can reach. If not, the server answers `404` (never `403`), so channel ids can't be guessed.
5. Each tool call needs the permission shown in the [tool catalog](https://docs.wappigate.com/mcp/workspace/tools/overview.md). Tools you lack permission for are simply not offered. A **Read only** connection is offered no write tools at all.

Every authentication attempt also counts against an IP-based limit — see [Rate limits](https://docs.wappigate.com/mcp/rate-limits.md).

## Troubleshooting / Technical Notes

* **`401`.** The key is missing, wrong or revoked, or the browser sign-in has ended. Check the `Authorization` header, or sign in again from the app.
* **`403` on the Workspace MCP.** With an API key: the key's owner lacks the API Access permission, MCP isn't included in the plan or enabled for the installation, or the key is being used on the wrong platform's address. With browser sign-in: MCP isn't included in your plan (the **Connect** page says so).
* **`400 channel_required`.** API key connections only: add the `X-Channel-Id` header.
* **`404` Channel not found.** The channel doesn't exist, or you can't reach it.
* **claude.ai connectors can't connect.** Use the Workspace MCP: add a custom connector with the server URL and sign in through the browser.

## Related docs

* [MCP introduction](https://docs.wappigate.com/mcp/overview.md)
* [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md)
* [Errors](https://docs.wappigate.com/mcp/errors.md)
* [API authentication](https://docs.wappigate.com/api-reference/authentication.md)
* [Developer Portal](https://docs.wappigate.com/workspace/developer-portal.md)
* [Team](https://docs.wappigate.com/workspace/team.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.