Installation guide · Configure

From a running install to a working workspace.

Once the services are healthy, the rest happens in the browser: the setup wizard connects Microsoft Entra ID, the first administrator signs in and adds the models, and the connectors are turned on as you need them. Settings that live in the install files are named with both forms: `.env` for Docker Compose, values for Helm.

§ 01

The setup wizard

Open https://ai.example.com. While setup is pending every page leads to /setup, and the API answers protected calls with 503 SETUP_REQUIRED.

  1. Token. Paste the bootstrap token (Docker Compose, Kubernetes) and press Verify and continue. The wizard keeps the token in the browser’s memory only. If a later step says the setup token expired, reload /setup and enter it again.

    Setup wizard, step 1: the field for the bootstrap token and the Verify and continue button.
    Step 1: the bootstrap token.
  2. Licence. Choose Start a free trial (company, work email address and country; open the link in the email you receive and the wizard continues on its own), I have a licence key (paste it). This step is required: without a licence nobody can sign in. The trial needs outbound HTTPS from the API to https://api.mislata.eu. See Licence.

    Setup wizard, step 2: the choice between Start a free trial and I have a licence key.
    Step 2: choose a trial or a licence key.
    Trial form of the setup wizard with company, work email and country filled in with example values.
    The trial form. The values shown are examples.
    Setup wizard, step 2: the field for pasting a licence key.
    Step 2: paste a licence key.
  3. Credentials. Enter the Tenant ID, Client (Application) ID and Client secret of the app registration. Leave API scope empty unless you changed the Application ID URI; it defaults to api://<client-id>/access_as_user. The guide in this step shows the exact redirect and logout addresses to register.

    Setup wizard, step 3: the Entra ID credentials form with Tenant ID, Client ID, Client secret and API scope.
    Step 3: the Entra ID credentials.
  4. Graph (optional). The Graph app creates the app registrations of REST API and MCP apps for administrators. Leave it empty to use the sign-in app, which then needs the Microsoft Graph application permission Application.ReadWrite.OwnedBy with admin consent. Tick Graph lives in the same tenant when it does.

  5. Test connection. Checks the tenant, the sign-in app credentials and the Graph credentials against Microsoft and saves nothing. A failure shows Microsoft’s reason, for example AADSTS7000215: Invalid client secret provided. Then press Save and continue.

  6. Finish. Press Complete setup. You are sent to the Microsoft sign-in page. The first account that signs in becomes the owner of the installation’s organisation. No restart is needed, and /setup is closed from then on.

When the install files already set the identity provider (identity.provider: entraid with identity.entraId.tenantId and clientId in Helm, or Identity__Provider, Identity__EntraId__TenantId and Identity__EntraId__ClientId in webapi.extra.env), the wizard asks only for the token and the licence, then shows Finish. That configuration wins over anything stored by the wizard.

§ 02

Administrators

  • Organisation administrators (owner or admin) manage users, Spaces, policies and the organisation’s settings in Administration. The first account to sign in is the owner.
  • Platform administrators manage the whole installation in the Mislata console (left rail): the model catalog, which modules each organisation can use, and organisations. A user is a platform administrator when the access token carries the app role platform:superadmin or platform:admin, or when the user’s ID is listed in SystemAdmins:UserIds.

The app role is created in the app registration (step 8 of the app registration). To use the setting instead, add the Entra object ID of the user:

Docker Compose: webapi.extra.env
SystemAdmins__UserIds__0=<object id of the user>
Helm values
webapi:
  extraEnv:
    SystemAdmins__UserIds__0: "<object id of the user>"

Also set the links to your own privacy notice and terms (Legal__PrivacyUrl, Legal__TermsUrl) and a contact address (Legal__ContactEmail) in the same places. While they are empty, the Privacy and Terms links are hidden. Self-service sign-up (/register) is closed on installations without in-app billing; administrators invite users instead.

§ 03

Models

There are two ways to give Mislata its models. The model catalog is the complete one; the AI provider wizard is the quick start.

AI provider wizard (organisation administrators)

After the first sign-in, while the organisation has no model, an administrator sees Configure AI Provider. Choose the provider (OpenAI, Azure OpenAI, Mistral or Scaleway), enter the endpoint, the API key and the model (OpenAI) or deployment name (Azure OpenAI), press Test Connection, then Save & Finish. Skip for now leaves it for later in Administration → Application configuration. A platform administrator also sees Use the model catalog, which opens the catalog.

Model catalog (platform administrators)

  1. In Mislata console → Models → Connections, add a connection: base URL, auth mode (api-key, bearer, apim-subscription-key or entra-id), the secret (stored encrypted, never shown again) and, for Azure, the API version. For an Azure AI Foundry account, fill in its subscription, resource group and account name (or paste its resource ID) to sync the deployments into the catalog every 15 minutes or with Sync from Foundry.

  2. In Catalog, add or check each model: key, display name, family (openai-compatible, azure-deployments or anthropic), model or deployment ID, context window, maximum output tokens, tools and vision support. New rows start inactive.

  3. In Tenants, tick the models each organisation can use and pick its default.

  4. In Administration → Application configuration → AI models, the organisation administrator picks the default model, the helper model (internal tasks: titles, query rewriting, re-ranking) and the Embedding model with dimension 1024. Press Test embeddings. Changing the embedding model later requires re-indexing the documents and every connected source.

With auth mode entra-id no key is stored: the API gets a Microsoft Entra token for its own identity (DefaultAzureCredential: AKS workload identity, the host’s managed identity, or AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET of a service principal). That identity needs Cognitive Services User (or Azure AI User) on the account, and Reader for the Foundry sync. Models behind Azure API Management use apim-subscription-key.

§ 04

Check storage

  • Upload a document in Documents and wait until it shows as indexed. Indexing needs the embedding model.
  • Generate a document and export it to Word. If the export stays “processing”, the storage is Local (exports need an S3-compatible store or Azure Blob) or the export worker is not running.
  • With Azure Blob, the API log at start shows the account and auth ManagedIdentity or auth ConnectionString.

§ 05

Email

SettingDocker Compose (`.env`)Helm values
Server and portEMAIL_SMTP_HOST, EMAIL_SMTP_PORT (587)email.smtp.host, email.smtp.port (587)
CredentialsEMAIL_SMTP_USERNAME, EMAIL_SMTP_PASSWORDemail.smtp.username, email.smtp.password
SenderEMAIL_FROM_EMAIL, EMAIL_FROM_NAMEemail.fromEmail, email.fromName
TLS—email.smtp.enableSsl (true: STARTTLS on 25 and 587, implicit TLS on 465)

A relay that authorises by source address needs no username or password. The certificate is checked against the host name, so use the name it was issued for. Without a host, invitations are created and logged but not sent; the confirmation tells the administrator to send the address to the person.

§ 06

Connectors

Each connector needs an app at the provider, settings in the install files and, for some, a module turned on. Users then connect their own accounts in Account → Connections. OAuth callbacks are built from the public address (MISLATA_PUBLIC_URL, or app.baseUrl in Helm), written https://ai.example.com below. Settings not in .env go in webapi.extra.env (Docker Compose) or webapi.extraEnv and webapi.extraSecretEnv (Helm).

The Microsoft Graph app

SharePoint, OneDrive, Outlook and Microsoft Teams use one Entra app registration for Microsoft Graph: GRAPH_API_TENANT_ID, GRAPH_API_CLIENT_ID, GRAPH_API_CLIENT_SECRET in .env, or graphApi.tenantId, clientId, clientSecret in Helm. It can be the sign-in app registration. In its Authentication settings, add a Web platform with the redirect URIs of the connectors you use:

text
https://ai.example.com/api/outlook/oauth/callback
https://ai.example.com/api/onedrive/oauth/callback
https://ai.example.com/api/msteams/oauth/callback

These sign-ins use Microsoft’s common endpoint, which needs a multi-tenant app. For a single-tenant app, set Outlook__Authority, OneDrive__Authority and MicrosoftTeams__Authority to your directory (tenant) ID; otherwise Microsoft answers AADSTS50194.

Inviting people from other organisations needs the Graph application permissions User.Invite.All (required) and Organization.Read.All (recommended). File permissions by Entra group need GroupMember.Read.All. All with admin consent.

SharePoint

  • Internal sites are read with each user’s own permissions (On-Behalf-Of). This reads the identity settings from the install files, not from the wizard: set Identity__Provider=entraid, Identity__EntraId__TenantId, Identity__EntraId__ClientId and Identity__EntraId__ClientSecret (Helm: identity.provider, identity.entraId.* and the secret in webapi.extraSecretEnv). When the Graph app is the sign-in app, its GraphApi secret is used if Identity__EntraId__ClientSecret is empty.
  • On the sign-in app registration: Microsoft Graph delegated permissions Sites.Read.All and Files.Read.All, with admin consent. Without consent SharePoint answers 403 SHAREPOINT_CONSENT_REQUIRED.
  • For background re-indexing, the Graph app needs the application permission Sites.Read.All (or Sites.Selected with the sites granted). Answers still check the reading user’s permissions.
  • External sites (another tenant where the user is a guest): a multi-tenant app with the SharePoint delegated permission AllSites.Read, and the public address registered as a redirect URI for the sign-in popup.
  • Module: sharepoint (SharePoint, OneDrive and cloud storage).

OneDrive

Delegated permissions Files.Read.All, User.Read and offline_access on the Graph app, and the redirect URI /api/onedrive/oauth/callback. An organisation can also use its own app in Administration → Storage providers.

Outlook

  • Delegated permissions on the Graph app: Mail.Read, Mail.Send, Mail.ReadWrite (inbox actions) and offline_access. Redirect URI /api/outlook/oauth/callback.
  • New mail arrives within seconds through a Microsoft Graph subscription when the public address is HTTPS and reachable from the internet (Outlook__WebhookBaseUrl if it differs from the public address). Otherwise mailboxes are synced every 15 minutes.
  • Module: email.

Gmail

  1. In Google Cloud Console, enable the Gmail API for a project.

  2. Create an OAuth client of type Web application with the authorised redirect URI https://ai.example.com/api/gmail/oauth/callback. Add the scopes gmail.readonly, gmail.send, gmail.modify (optional, inbox actions), userinfo.email and openid to the consent screen.

  3. Set Google__OAuth__ClientId and Google__OAuth__ClientSecret, or enter the client in Administration → Storage providers → Gmail for one organisation. Without a client, the Gmail card shows “Coming soon”.

  4. Optional push delivery: a Pub/Sub topic with publisher rights for gmail-api-push@system.gserviceaccount.com, a push subscription to https://ai.example.com/api/gmail/webhook with an OIDC token whose audience is that URL, and the settings Google__OAuth__WatchTopic (projects/<project>/topics/<topic>) and Google__PubSub__Audience. Without it, Gmail is checked every 15 minutes.

Microsoft Teams

  • Delegated permissions on the Graph app: Chat.Read, ChatMessage.Send, Team.ReadBasic.All, Channel.ReadBasic.All, ChannelMessage.Send, ChannelMessage.Read.All, User.Read, offline_access. Admin consent is required for ChannelMessage.Read.All; MicrosoftTeams__ChannelMessages=false drops it and turns channel sync off.
  • Redirect URI /api/msteams/oauth/callback. Chat and channel sync need a public HTTPS address that Microsoft can reach (MicrosoftTeams__WebhookBaseUrl if it differs). Check it with curl -s -X POST "https://ai.example.com/api/msteams/webhook?validationToken=ping", which prints ping.
  • Module: microsoft_teams, turned on by a platform administrator. It is not the teams module, which is Mislata’s own shared workspaces.

Slack

  • At api.slack.com/apps, create an app. Redirect URL https://ai.example.com/api/slack/oauth/callback. User Token Scopes: channels:read, groups:read, im:read, mpim:read, channels:history, groups:history, im:history, mpim:history, chat:write, files:read, users:read. No bot scopes.
  • Event Subscriptions: request URL https://ai.example.com/api/slack/events; events on behalf of users message.channels, message.groups, message.im, message.mpim, member_left_channel, channel_left, group_left.
  • Settings: Slack__ClientId, Slack__ClientSecret, Slack__AppId, Slack__SigningSecret, or the organisation’s own app in Administration → Storage providers → Slack.
  • Module: slack, off by default.

IMAP mailboxes

Users connect any IMAP mailbox with an app password. Only ports 993 (TLS) and 143 (STARTTLS) are accepted (Imap__AllowedPorts), and servers on private, loopback or link-local addresses are refused, unless the host name is listed in Imap__TrustedHosts (comma separated), for your own mail server on an internal address. Module: imap, off by default.

§ 07

Modules

A platform administrator chooses the modules of each organisation in Mislata → Tenant modules. A hidden module disappears from the navigation and its API answers 403 module_disabled. Core preset keeps Chat, Documents, Teams, History and Admin and hides the rest.

Modules: chat, documents, teams, history, admin, document_generation, email, sharepoint, spaces, external_users, knowledge, memory, prompts, policies, compliance, mcp, agents, public_api, messages, microsoft_teams. Off until a platform administrator turns them on: slack, imap, drawio_diagrams. The file manager (preview) cannot be turned off once on.

§ 08

Users and invitations

  • In Administration → Users, press Invite user: email address, role (User or Admin) and the Spaces to join. People sign in with their Microsoft work account; there is no password.
  • An address outside your directory’s domains is invited as a guest of your Entra directory (needs User.Invite.All); the email carries Microsoft’s acceptance link.
  • Without email, the invitation is still created; send the address yourself (guests: Copy link).
  • A person takes a licence seat on first sign-in; guests do not. The Seats card shows who uses each seat; Release frees one. Administrators always get in, even over the limit.

§ 09

Backups and upgrades

Back up the PostgreSQL database every day, together with the object storage and your install files. The DataProtectionKeys table encrypts stored connector sign-ins and must be restored with the rest of the database. Commands: Docker Compose, Kubernetes.

Upgrades: Docker Compose, Kubernetes. The running version is shown in the footer, in the user menu and at /api/version; quote the version and commit when you report a problem.

§ 10

Licence

The release images check a signed licence key. Without a valid key, every page shows “The licence has expired” and the API answers 402; no data is deleted, and everything works again once a key is installed.

  • Trial. 30 days, up to 10 users, one per company email domain, from the wizard or Administration → Licence → Start a free trial. Free-mail addresses are refused.
  • Buy. In Administration → Licence, press Buy licence: choose the number of users and monthly or yearly payment (20 EUR per user per month or 200 EUR per user per year, VAT added where it applies), enter the billing details and pay by card through Mollie. The key installs itself.
  • Renewal. Each payment issues a new key. The installation fetches it every 6 hours or when an administrator presses Check now. Starting the trial or buying from the app saves the renewal address and token; you can also set them (LICENSE_RENEWAL_URL and LICENSE_INSTALL_TOKEN, or license.renewalUrl and license.installToken).
  • Grace. If a payment fails, the current key keeps working for 15 days after the paid period. Administrators see a reminder from 14 days before the end date.
  • Without internet access. Request the trial at https://portal.mislata.eu/license/trial from any computer and paste the key. To buy, Buy licence shows the licence ID and a purchase link to open elsewhere; paste the key you receive by email in Administration → Licence, or set it as LICENSE_KEY / License__Key in webapi.extraSecretEnv.

Prices and the purchase steps are also on Buy.