> 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/espocrm-integration.md). Agents can also search and read this documentation through its [MCP server](https://help.sipgate.de/~gitbook/mcp).

# EspoCRM integration

This is how you connect the open-source CRM EspoCRM with the sipgate app for contact synchronization and telephony.

EspoCRM is open-source CRM software that lets you view, enter, and evaluate all business relationships, regardless of type.

With sipgate, you can make calls directly from EspoCRM and use your contacts in the sipgate app. This way, you always know which contact is calling and don’t have to switch between different tools. sipgate is your phone system, with a telephony app for desktop and mobile.

**Integrating EspoCRM 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,” find “EspoCRM” and click the “Connect to EspoCRM” button. ![EspoCRM\_Login.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-afa7542ed25337bdf41e00b95e769009d0d9ff19%2FEspoCRM_Login.png?alt=media)
{% endstep %}

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

Enter the required API key and API URL here.

![EspoCRM\_API.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-9609a24a8598ebb382425cc0607ffbe4af655be2%2FEspoCRM_API.png?alt=media\&token=f178568f-577e-42be-85ee-f6bd5334884f)
{% endstep %}

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

EspoCRM and the sipgate app are now successfully connected.

{% 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 %}

**Finding or creating an API key in your EspoCRM account:**

{% stepper %}
{% step %}
**Create a role**

First, create a role with the required permissions. In your account, click the button with the three dots in the upper-right corner and select “Administration.”

![EspoCRM1 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-258602c6949478e928c86ae340e3312d9eadccb0%2FEspoCRM1%20Kopie.png?alt=media\&token=4cc9dcfe-d15f-4b08-ab80-6d70c88c476a)

In the next window, under “Users,” select “Roles.”

![EspoCRM2 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-b9b24dddb324e1f101ed40e4d619dd91ba7f5de7%2FEspoCRM2%20Kopie.png?alt=media\&token=745a8d58-e4f6-4d2d-bce0-1c0179fbe0a2)

Click the “Create Role” button.

![EspoCRM3 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-1da8a42b94a25699d0558f712042d4e0f014762f%2FEspoCRM3%20Kopie.png?alt=media\&token=2e4358ca-1301-40df-820f-b918ab719130)

First, enter any name for the new role. Then enable the following scopes in the “Scope Level” list: “Accounts,” “Contacts,” “Leads,” and “Users.” Finally, save your changes by clicking “Save.”

![EspoCRM4 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-5210373c2f246f89c9e6a97e35d8ed39ea4d5b28%2FEspoCRM4%20Kopie.png?alt=media\&token=01747e10-9e77-4993-9f2e-70733a8d138e)
{% endstep %}

{% step %}
**Create an API user**

Next, create a new user and assign them the role you just created. To do this, click the button with the three dots in the upper-right corner again and select “Administration.” ![EspoCRM1 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-258602c6949478e928c86ae340e3312d9eadccb0%2FEspoCRM1%20Kopie.png?alt=media\&token=4cc9dcfe-d15f-4b08-ab80-6d70c88c476a)

Then, under “Users,” select “API Users.”

![EspoCRM6 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-9fa1d0137900ce41a74e2c86358dcf366e1308a2%2FEspoCRM6%20Kopie.png?alt=media\&token=5a070c42-90a8-466e-b4b1-1a88778c981a)

Enter any name for the user and assign them the role you created earlier. **Make sure that “Authentication Method” is set to “API Key.”** Then save your changes by clicking “Save.”

![EspoCRM7 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-3bed4184c344714d464449a6ec91f2677569affc%2FEspoCRM7%20Kopie.png?alt=media\&token=0741cff2-9542-4c52-a234-be96f8fe2c47)
{% endstep %}

{% step %}
**Copy the API key**

You can now find the required API key for the newly created user. Enter this API key and the API URL: [https://kundensubdomain.espocloud.XX](https://kundensubdomain.espocloud.xx/) or your own self-hosted domain [https://firma.de](https://firma.de/) in the sipgate app.

![EspoCRM8 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-52d38112ecfecffc2e4ffbc7b0a50a15bf393044%2FEspoCRM8%20Kopie.png?alt=media\&token=e0c7132f-79e5-4c0b-88da-439ab8424644)
{% endstep %}
{% endstepper %}

{% hint style="info" %}
**Important:** To enable the self-hosted EspoCRM solution in your firewall setup, you must allow the Espo Bridge at espocrm.integration.sipgate.cloud and port 443. This is required so that the sipgate app can successfully load your CRM contacts.
{% endhint %}


---

# 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/espocrm-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.
