> 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/powershell-universal/de/config/management-api.md).

# Management-API

Sie können PowerShell Universal über die integrierte Management API verwalten. Sie bietet die Möglichkeit, alle Aktionen der Admin-Konsole automatisiert auszuführen. Sie können die API anzeigen und testen, indem Sie die Swagger-API-Dokumentation an ihrem Standardort auf Ihrem Computer aufrufen: `http://localhost:5000/swagger/index.html` .

{% hint style="info" %}
Die Management API ist integriert und erfordert keine Lizenz für Universal API.
{% endhint %}

## PowerShell-Modul

Wir stellen ein PowerShell-Modul bereit, das die API für Sie aufruft, sodass Sie die HTTP-Anfragen nicht selbst schreiben müssen. Sie können dieses Modul aus der PowerShell Gallery herunterladen.

```powershell
Install-Module Universal
```

Das PowerShell-Modul erfordert ein App-Token und einen Computernamen, um den Universal-Server aufzurufen. Sie können diese Angaben bei jedem Aufruf bereitstellen.

```powershell
Invoke-PSUScript -Script $Script -ComputerName http://localhost:5000 -AppToken $AppToken
```

Zusätzlich können Sie sich mit `Connect-UAServer` mit dem Universal-Server verbinden.

```powershell
Connect-PSUServer -ComputerName http://localhost:5000 -AppToken $AppToken
```

## REST API

Auf die PowerShell Universal Management API kann über REST-Aufrufe zugegriffen werden. Sie können die verfügbaren Aufrufe in der integrierten Swagger-API-Dokumentation anzeigen. Für Aufrufe der REST API benötigen Sie ein App-Token.

## App-Tokens

[App-Tokens](/powershell-universal/de/sicherheit/app-tokens.md) sind für die Management API erforderlich. Sie müssen ein App-Token sowohl mit den PowerShell-Cmdlets als auch beim direkten Aufruf der Management API über REST verwenden.

Sie können ein App-Token mit `Invoke-RestMethod` verwenden, indem Sie den Authorization-Header angeben.

```powershell
Invoke-RestMethod http://localhost:5000/api/v1/script -Headers @{ Authorization = "Bearer appToken" }
```


---

# 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/powershell-universal/de/config/management-api.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.
