> For the complete documentation index, see [llms.txt](https://help.sipgate.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.sipgate.de/cloud-telefonanlage/en/connections-and-integrations/integrationen-fur-die-sipgate-app/zammad-integration.md). Agents can also search and read this documentation through its [MCP server](https://help.sipgate.de/~gitbook/mcp).

# Zammad integration

This is how you connect the helpdesk system Zammad with the sipgate app for automatic contact synchronization and telephony.

Zammad is an open-source helpdesk system that lets you manage all your company's communication channels from a single platform. Thanks to its REST API, Zammad can be easily integrated into existing system environments.

Connect sipgate and Zammad to benefit from automatic contact synchronization. Any changes or new contacts you add in the sipgate app during or after a call are automatically saved in Zammad.

**Integrating Zammad with the sipgate app:**

{% stepper %}
{% step %}
**Select the integration**

In the sipgate app, click the gear icon on the left and select **Integrations** .\
Under **Integrations** search for the entry **Zammad** and click **Connect to Zammad**. ![](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-5758269bda09463b3edc87334818535df5c5b558%2Fmceclip0.png?alt=media\&token=fc596321-a1ab-46db-82cf-9742f6bef57a)
{% endstep %}

{% step %}
**Enter API details**

Enter the required API key and API URL here.

![](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-a640b21aad2a855b8d92b56941a407e45fdf4f44%2Fmceclip1.png?alt=media\&token=72832147-8799-46fd-8fc1-b7128f0e666a)
{% endstep %}

{% step %}
**Confirm the connection**

Zammad is now successfully connected to the sipgate app.

{% hint style="info" %}
Note: Depending on the number of contacts being integrated, it may take a few minutes for them all to appear.
{% endhint %}
{% endstep %}
{% endstepper %}

**Find or create an API key in your Zammad account:**

In your account, click the user icon in the bottom-left corner and select "Profile".

![Zammad1](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-936f794bc86e4058c92c7c07d695e281c05ca0ad%2FZammad1%20Kopie.png?alt=media\&token=e8aba6ce-ade0-42e6-a6f7-3868ef91f98b)

Now open the "Token Access" menu item and click the "Create" button.

![Zammad2](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-91139b0b0eaa35d301b3a88afa7c16ae50ac8a41%2FZammad2%20Kopie.png?alt=media\&token=2ebbd522-3758-41d0-a44f-a8d8a622897b)

Now enter a name for the API key you want to create **and select the "User, Manage Users" option from the list.**

![Zammad3](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-734fb730581dbbdd57154ca2c6c05d98d84d99a6%2FZammad3%20Kopie%203.png?alt=media\&token=84a12d45-2746-43e8-a33f-04b899476ec2)

You have now created the required API key. Copy it and enter it in the sipgate app.

{% hint style="warning" %}
Important: To enable creating and updating call logs and notes, add the following permissions to the API key:
{% endhint %}

* **admin.user**
* **admin.organization**
* **ticket.agent**

![Zammad4](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-500ab618aedd6d8fefeff90eae2aca3dc37090de%2FZammad4%20Kopie.png?alt=media\&token=c9e5cb1a-45b2-478d-8f32-96af4fafcffe)

{% hint style="warning" %}
**Important:** To enable the self-hosted Zammad CRM solution in your firewall setup, allow access to the Zammad bridge at zammad.bridge.clinq.com on port 443. This is required for the sipgate app to load CRM contacts successfully.
{% endhint %}

#### Creating contacts

The sipgate app always creates new contacts or updates contact entries in Zammad with the role **Customer.** This role is available by default in Zammad, but it can be changed. If this role is unavailable because its name has been changed, or if additional roles exist, the sipgate app cannot write to the designated role.

#### Notes for self-hosted Zammad solutions

The sipgate<>Zammad bridge uses the following APIs to sync contacts and create call events:

* Endpoints under /api/v1/users
* Endpoints under /api/v1/organizations
* Endpoints under /api/v1/tickets\
  \&#xNAN;*Zammad API:* [Introduction — Zammad System Documentation documentation](https://docs.zammad.org/en/latest/api/intro.html#endpoints-and-example-data)\
  \&#xNAN;*Zammad API – User:* [User — Zammad System Documentation documentation](https://docs.zammad.org/en/latest/api/user.html)

The Zammad CTI API is not used because it does not allow live events to be edited:\
\&#xNAN;*Zammad Generic CTI API:* [Generic CTI — Zammad System Documentation documentation](https://docs.zammad.org/en/latest/api/generic-cti/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.sipgate.de/cloud-telefonanlage/en/connections-and-integrations/integrationen-fur-die-sipgate-app/zammad-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
