> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/de/web-interface/utilities/api-documentation.md).

# API-Dokumentation

Ausführliche Anweisungen zur Devolutions Server REST-API finden Sie im Abschnitt ***Apps und*** ***Begleitwerkzeuge*** in der Weboberfläche von Devolutions Server unter ***Hilfe & Tools*** – ***API-Dokumentation***.

<figure><img src="https://webdevolutions.blob.core.windows.net/docs/DVLS6005_2026_2.png" alt=""><figcaption></figcaption></figure>

So sieht das REST-API-Fenster aus:

![](https://cdnweb.devolutions.net/docs/DVLS6008_2025_2.png)

Um die REST-API zu verbinden und zu verwenden, beziehen Sie sich auf das folgende Beispiel-Bash-Skript. Stellen Sie bei jedem API-Aufruf an den Server Folgendes sicher:

* Ersetzen Sie `https://url` durch die spezifische Devolutions Server-URL.
* Ersetzen Sie `GUID-OF-VAULT` und `GUID-OF-ENTRY` durch die entsprechenden GUIDs.

{% hint style="info" %}
In dieser Version der API können Passwörter nur aus Einträgen des Typs Anmeldeinformationen abgerufen werden. Beachten Sie, dass Subtyp-Einträge (zum Beispiel PasswordList) nicht unterstützt werden.
{% endhint %}

```bash

# Log in and get the token
authResponse=$(curl -s -X POST "https://url/api/v1/login" \
    -H "Content-Type: application/json" \
    -d '{
        "appKey": "appkey",
        "appSecret": "appsecret"
    }')
token=$(echo $authResponse | jq -r '.tokenId')

# Check if the token was successfully obtained
if [ -z "$token" ] || [ "$token" = "null" ]; then
  echo "Failed to login or obtain token."
  exit 1
fi

# Request data using the token
response=$(curl -s -X GET "https://url/api/v1/vault/GUID-OF-VAULT/entry/GUID-OF-ENTRY" \
    -H "Content-Type: application/json" \
    -H "tokenId: $token")

echo $response | jq

# Log out
curl -s -X POST "https://url/api/v1/logout" \
    -H "Content-Type: application/json" \
    -H "tokenId: $token" \
    -H "Content-Length: 0"
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/server/de/web-interface/utilities/api-documentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
