---
name: helpdock
description: "Use when installing, configuring, operating, upgrading or integrating Helpdock, the open-source self-hosted help desk: the Docker Compose install and its .env, backups, restores and upgrades, channels (email, Telegram, WhatsApp, Messenger, Instagram, the chat widget, the web form), SSO and sign-in, AI and knowledge, importers, and the REST API and webhooks. Documents Helpdock 1.5.0."
---

# Helpdock 1.5.0

Helpdock is an open-source (AGPL-3.0), self-hosted customer support platform:
ticketing, a help center, a live chat widget and AI that answers only from the
brand's knowledge, with one Docker Compose deploy serving many brands, in English
and Arabic. This skill documents release **1.5.0**; `references/` holds the
guides published with it (also at https://helpdock.oday-bakkour.com/docs/).

## Where to look

| To | Read |
|---|---|
| Install Helpdock on a Linux server with Docker Compose | [references/install.md](references/install.md) |
| Deploy on Dokploy, Coolify, Render or DigitalOcean | [references/deploy.md](references/deploy.md) |
| Look up an environment variable or install setting | [references/configuration.md](references/configuration.md) |
| Back up, restore, upgrade or rotate the master key | [references/operations.md](references/operations.md) |
| Prove a backup restores | [references/restore-drill.md](references/restore-drill.md) |
| Set retention windows or erase a person | [references/data-retention.md](references/data-retention.md) |
| Connect a mailbox (IMAP or inbound parse) | [references/email.md](references/email.md) |
| Send replies and auto-replies by email | [references/outbound-email.md](references/outbound-email.md) |
| Connect a Telegram bot | [references/telegram.md](references/telegram.md) |
| Connect WhatsApp, Messenger or Instagram | [references/meta-channels.md](references/meta-channels.md) |
| Embed the live chat widget or speak its protocol | [references/widget-protocol.md](references/widget-protocol.md) |
| Turn on the hosted web form | [references/web-form.md](references/web-form.md) |
| Work tickets: statuses, views, merge, bulk edit | [references/tickets.md](references/tickets.md) |
| Set up departments, statuses, fields and assignment | [references/ticketing-settings.md](references/ticketing-settings.md) |
| Configure SLA policies and business hours | [references/slas.md](references/slas.md) |
| Write workflow and time-based rules | [references/automation.md](references/automation.md) |
| Write macros and canned responses | [references/macros.md](references/macros.md) |
| Publish the help center on a brand domain | [references/help-center.md](references/help-center.md) |
| Configure AI providers, knowledge and auto-reply | [references/ai.md](references/ai.md) |
| Import from Zendesk, Freshdesk, Zoho Desk or CSV | [references/importing.md](references/importing.md) |
| Configure staff sign-in, 2FA and passkeys | [references/authentication.md](references/authentication.md) |
| Set up SSO over SAML or OpenID Connect | [references/sso.md](references/sso.md) |
| Manage staff and roles | [references/staff-and-roles.md](references/staff-and-roles.md) |
| Review the security model | [references/security.md](references/security.md) |
| Call the REST API | [references/api.md](references/api.md) |
| Receive and verify webhooks | [references/webhooks.md](references/webhooks.md) |
| Read reports or export CSV | [references/reports.md](references/reports.md) |

Read the reference before answering; quote its settings and paths exactly.

## Install (references/install.md)

Needs a Linux server with Docker Engine and the Compose v2 plugin, 2 vCPU and
4 GB of memory, two DNS names (admin app, and API and widget), ports 80 and 443,
and an S3-compatible bucket.

```bash
git clone --depth 1 --branch v1.5.0 https://github.com/Docker-Hunterpedia/Helpdock.git
cd Helpdock/docker
cp ../.env.example .env
openssl rand -base64 32   # the master key, for APP_MASTER_KEY
```

In `.env`, set `HELPDOCK_VERSION=1.5.0` and at least `APP_URL`,
`APP_MASTER_KEY`, `HELPDOCK_APP_PASSWORD`, `DATABASE_URL`,
`POSTGRES_PASSWORD`, `DATABASE_MIGRATION_URL`, `ADMIN_HOST`, `API_HOST`,
`ACME_EMAIL` and the `S3_*` keys. Then:

```bash
docker compose up -d
docker compose ps
```

Open `https://<ADMIN_HOST>` and finish the first-run wizard. Back up `.env`
with the database: without `APP_MASTER_KEY`, no stored secret can be read back.

## Upgrade (references/operations.md, "Upgrading")

Migrations are forward-only and run when the api boots. Read the release notes,
take a database dump, then pin the new release:

```bash
cd Helpdock
git fetch --tags && git checkout v1.5.0
cd docker
sed -i 's/^HELPDOCK_VERSION=.*/HELPDOCK_VERSION=1.5.0/' .env
docker compose pull
docker compose up -d
docker compose logs -f api
```

If a migration fails, the api exits before it listens; restore the dump with
the previous `HELPDOCK_VERSION`.

## REST API essentials (references/api.md, references/webhooks.md)

- Per brand, under `/api/v1`: tickets and their messages, contacts, help center
  articles and webhook endpoints.
- Create a key in **Developers › API keys**; it is shown once. Send
  `Authorization: Bearer hd_live_…`.
- Scopes: `tickets:read`, `tickets:write`, `contacts:read`, `contacts:write`,
  `articles:read`, `webhooks:manage`.
- The reference is at `<APP_URL>/api/docs` and the OpenAPI 3.1 document at
  `<APP_URL>/api/docs/openapi.json`.
- 600 requests a minute per key by default (`429` above it); an
  `Idempotency-Key` is kept for 24 hours.
- Webhooks are signed: `X-Helpdock-Signature: t=<unix>,v1=<hex>`, the hex
  HMAC-SHA256 of `timestamp + "." + rawBody` under the endpoint's secret. Refuse
  timestamps more than five minutes old and deduplicate on the event `id`.

## Facts that hold everywhere

- Helpdock is self-hosted only; Docker Compose is the supported runtime.
- Every AI mode is off until a brand's Admin turns it on.
- Each brand's data is kept apart by Postgres row-level security.
