> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# User Management API Overview

> Invite users, change their system role, and deactivate them programmatically

The User Management API lets you invite users to your Langdock workspace, change an active member's system role, and deactivate them programmatically, for example to automate onboarding and offboarding from your own systems.

## Before You Start

* **API key scope**: Requires an API key with the `USER_MANAGEMENT_API` scope. The API key must be created by a workspace admin.

## Base URL

```
https://api.langdock.com
```

<Warning>
  **Dedicated deployments**

  Replace `api.langdock.com` with `<your-deployment-url>/api/public` in all requests.
</Warning>

## Available Endpoints

| Method | Endpoint | Description |
| - | - | - |
| `POST` | `/user-management/v1/invite` | [Invite users to the workspace](/en/developer/user-management-api/invite) |
| `POST` | `/user-management/v1/update-user-role` | [Change a member's system role](/en/developer/user-management-api/update-user-role) |
| `POST` | `/user-management/v1/deactivate-user` | [Deactivate a workspace user](/en/developer/user-management-api/deactivate-user) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.