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

# Nextcloud integration

This is how you connect Nextcloud with the sipgate app to synchronize your self-hosted contacts and make calls.

Nextcloud lets you manage your data on your own cloud server without having to hand control of your data over to companies like Google or Apple. By combining self-hosting with private cloud computing, Nextcloud offers better, personalized data protection than commercial US cloud providers.

With sipgate, you can make calls directly from Nextcloud and use your contacts in the sipgate app. This way, you can always see 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 Nextcloud 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 “Nextcloud” and click the “Connect to Nextcloud” button. ![nextcloud.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-fb7a54b6032ccbfe34e275835aba88c1a99b7c17%2Fnextcloud.png?alt=media\&token=53077af9-d2cc-4db9-822f-cebd893e3a0d)
{% endstep %}

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

Enter the required API key and API URL here.

{% hint style="warning" %}
**Important: Enter the API key in the format “Username:Webtoken”.**
{% endhint %}

Copy the API URL from the address bar in the browser window for your Nextcloud instance.

![nextcloud\_api.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-9d861d9c10a89a367946604cd818a5960d91fe74%2Fnextcloud_api.png?alt=media\&token=93b242dc-2295-4d9b-8523-1c5ab51021c2)
{% endstep %}

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

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

#### **Find or create an API key in your Nextcloud account**

Click your user icon in the top-right corner of your Nextcloud instance, then select “Administration settings” from the menu.

![nextcloud1 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-47df40408441d026b959ec0569d76cc8031eb81a%2Fnextcloud1%20Kopie.png?alt=media\&token=1ac10bc8-b390-43e6-8cbe-2b06bd2f2c77)

Now select “Security” under the “Personal” heading on the left.

![nextcloud2 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-7cfca3d2020749ceeb8f887cccb77b2527e03995%2Fnextcloud2%20Kopie.png?alt=media\&token=2c69e3e4-1f65-450a-898c-2c03b2964eb6)

#### **Errors and solutions:**

<details>

<summary>Error: “Invalid credentials” with self-hosted Nextcloud</summary>

**self-hosted Nextcloud**

The sipgate app will probably fail to connect and report the error: “Invalid credentials”.\
**Cause**: Requests are not being forwarded to Nextcloud via WebDAV by the self-configured web server/load balancer/etc.\
**Information**:

WebDAV:

Here you can create the required web token (API key). If you have already created web tokens, you can delete, revoke, or rename them here. Please note that the actual tokens (API keys) can only be viewed and copied once, when they are created.

Scroll to the bottom of the page, enter any name in the “App name” field, then click the “Create new app password” button.

![nextcloud3 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-0439b7da986128b0ac2aad632c7adee22d6ae2da%2Fnextcloud3%20Kopie.png?alt=media\&token=b5cd43d8-566b-4429-9e1e-9e6d92cde706)

Follow the instructions shown and copy the newly created token. Finally, click the “Done” button. ![nextcloud4 Kopie.png](https://4045603198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg0qj71PeONPljdPedXLf%2Fuploads%2Fgit-blob-1dc60d9c3b83721e925e6b4ac06add09b9718047%2Fnextcloud4%20Kopie.png?alt=media\&token=9ce62d14-c418-4133-91cc-0052a2a5d56f)

</details>


---

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