# User Management API Quick Start

The User Management API lets your business manage its users and groups from your own systems, for example an HR system. You do not need SSO or an identity provider for it. If you use Microsoft Entra ID, you can also connect it through [SCIM](/user-management-api-scim).

## Before you start

The User Management API is available only to businesses on the Scale plan. Skribble must enable the feature for your business. To request access, contact [support@skribble.com](mailto:support@skribble.com).

Every request must carry a bearer token from an API key with the usage Users. You cannot use the API key of your Sign API integration. After Skribble enables the feature, the API keys page in Skribble Business shows the column Usage, with the value Signatures or Users.

:::info

The Usage column and the Usage option are not available for every business. They show only after Skribble enables the User Management API for your business.

:::

To create an API key for the User Management API:

1. In Skribble Business, open API keys and select Create API key.
2. Under Usage, select Users. You cannot change the usage after you create the key.
3. Select Demo key or Production key, and then select Create Users key.
4. Copy the user name and the API key. Skribble shows the API key only once.

You log in with this user name and API key. For the login flow and the token lifetime, see [Authentication](/authentication).

The API uses the `/v3` base path in both data hosting regions:

| Region | Base URL |
|--------|----------|
| Switzerland | `https://api.skribble.com/v3` |
| Germany | `https://api.skribble.de/v3` |

All examples below use the Swiss region and expect the token in `$TOKEN`.

## Identify a user

You can address a user in three ways:

| Identifier | Set by | Use it in |
|------------|--------|-----------|
| `id` | Skribble | `/users/{id}` and all action paths |
| `email` | You | `/users/{id}` (a value with `@` is read as an email) |
| `external_id` | You | `GET /users?external_id={external_id}` |

The `external_id` is your own reference, for example the employee number in your HR system. It is unique in your business. Set it when you create the user. You can then find the user again without storing the Skribble `id`.

## Step 1: Create a user

Only `email` is required. The user gets the role `signer` if you do not send a role, and the language `de` if you do not send `lang`.

```bash
curl -X POST "https://api.skribble.com/v3/users" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "jane.doe@example.com",
    "first_name": "Jane",
    "last_name": "Doe",
    "lang": "en",
    "role": "creator",
    "external_id": "hr-system-42"
  }'
```

The result depends on two things: the domain of the email address, and what the email already belongs to in Skribble. A managed domain is a domain with the status Activated on the Domains page of your business, or a subdomain of one. A domain that is only requested does not count.

| The email belongs to | Managed domain | Other domain |
|----------------------|-----------------|--------------|
| No Skribble account | `201` `active`. New account, no email. | `201` `invited`. Invitation email. |
| An account that never signed in, in no business | `200` `active`. The account joins at once, no email. | `201` `invited`. Skribble replaces the unused account and sends an invitation email. |
| An account that signed in before, in no business | `200` `active`. The account joins at once, no email. | `200` `active`. The account joins at once, no email. |
| A pending invitation from your business | `200` `active`. The invitation becomes a membership. | `200` `invited`. No change, no second email. |
| A member of your business | `409` `already exists in this business` | `409` `already exists in this business` |
| A member of another business, or a pending invitation from another business | `409` `email already in use` | `409` `email already in use` |

If another user already has the `external_id`, you get `409` `external_id already exists in this business`.

The invitation email is in the user's `lang`. The invitation link is valid for 30 days. When Skribble returns a pending invitation unchanged, it ignores the role and the profile fields in the request. To change them, use the update and role endpoints after the user accepts.

Users who join at once get no email. Tell them that they have a Skribble account. With SSO, they sign in through your identity provider. Without SSO, they select "Forgot password" on the Skribble login page to set a password.

## Step 2: Read and list users

Read one user by `id` or email:

```bash
curl "https://api.skribble.com/v3/users/jane.doe@example.com" \
  -H "Authorization: Bearer $TOKEN"
```

List the users of your business with [`GET /users`](/api/user-management-v3/user#list-and-filter-users). The list is paginated with `page` (starts at `1`) and `per_page` (`50` by default, `200` at most). By default, the list contains only `active` users. To change this, send `status=active,suspended`.

Invited users are not in the list, because they are not members of your business yet. Read them by `id` or email, or filter the list by `external_id`.

To find users who did not sign in for a long time, use `last_login_before`. The value must include a time zone offset:

```bash
curl "https://api.skribble.com/v3/users?last_login_before=2026-01-01T00:00:00%2B01:00" \
  -H "Authorization: Bearer $TOKEN"
```

## Step 3: Update a user

[`PATCH /users/{id}`](/api/user-management-v3/user#update-a-user) is a JSON merge patch (RFC 7396). Only the fields that you send change.

```bash
curl -X PATCH "https://api.skribble.com/v3/users/{id}" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "last_name": "Doe-Smith", "cost_center": "CC-7777" }'
```

You cannot change `status` or `roles` with this endpoint. Use the suspend, reactivate, and delete actions and the role endpoints. You can change the email only if the old and the new address are both on a domain that your business manages.

The `mobile` field takes the country code and the number. Skribble removes a leading `+`, a leading `00`, and spaces. It returns the number as digits only, for example `41791234567`.

## Roles

A user always has exactly one base role. An admin also has the `admin` role.

| `roles` value | Meaning | Seat |
|---------------|---------|------|
| `["signer"]` | Can sign documents. | Free seat |
| `["creator"]` | Can create signature requests. | Paid seat |
| `["creator", "admin"]` | Can also manage the business. | Paid seat |

The role `signer` is available only to businesses with Skribble Seats. Other businesses can still send `signer`, and the request does not fail.

To change a role, add or remove one role at a time:

```bash
# Make the user an admin. A signer also becomes a creator.
curl -X POST "https://api.skribble.com/v3/users/{id}/roles" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "role": "admin" }'

# Remove the admin role. The user stays a creator.
curl -X DELETE "https://api.skribble.com/v3/users/{id}/roles/admin" \
  -H "Authorization: Bearer $TOKEN"
```

Adding a role that the user already has, or removing a role that the user does not have, changes nothing and returns `200`. You cannot remove `signer`. Add `creator` instead. You cannot change the role of an invited user until they accept the invitation.

## Suspend, reactivate, and delete

Suspend blocks the login and ends all sessions. Open signature requests, group memberships, and the seat stay. Reactivate enables the login again, also through SSO. Delete ends the user's relationship with your business at once, and you cannot undo it.

The result of each action depends on the status of the user:

| Action | Active or suspended user | Invited user | Last admin of your business |
|--------|--------------------------|--------------|-----------------------------|
| `GET /users/{id}` | `200` | `200` with status `invited` | `200` |
| `GET /users` | Listed | Not listed | Listed |
| `PATCH /users/{id}` | `200` | `200`. The change applies before they accept. | `200` |
| Add or remove a role | `200` | `409` `user has not accepted the invitation yet` | `409` if the change removes `admin` |
| Suspend | `200`. Idempotent. | `200`. Skribble withdraws the invitation, and the status becomes `suspended`. | `409` |
| Reactivate | `200`. Idempotent. | `200` with the unchanged user | `200` |
| Delete | `200`. See below. | `200`. Skribble withdraws the invitation. | `409` `cannot delete or remove the business's last admin` |

A user cannot suspend, reactivate, or delete their own account. This applies when you call the API with the token of an admin user.

The result of a delete depends on the email address:

| User | Result |
|------|--------|
| Email on a managed domain | Skribble deletes the account and its data. The login, also through SSO, stops working. |
| Email on another domain | Skribble removes the user from your business. The user keeps a free personal account. |
| Invited user | Skribble withdraws the invitation. If the account never signed in, Skribble deletes it. |

The user stops counting toward your seats at once. A second delete of the same user returns `404`.

:::warning

Before you delete a user on one of your managed domains, make sure that you do not need the account. Skribble deletes the account and its data, and you cannot undo this. To only block access, suspend the user.

:::

## Groups

Groups are lists of business members. You use them as signers or observers of signature requests. A group has no role.

1. Create an empty group with [`POST /groups`](/api/user-management-v3/group#create-a-group). Group names are unique in your business, and the comparison ignores case.
2. Add members one at a time with [`POST /groups/{id}/members`](/api/user-management-v3/group#add-a-group-member). Send either `email` or `user_id`.
3. Remove a member with `DELETE /groups/{id}/members/{user_id}`.

```bash
curl -X POST "https://api.skribble.com/v3/groups" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Sales Team Signers", "external_id": "idp-group-7" }'

curl -X POST "https://api.skribble.com/v3/groups/{id}/members" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "email": "jane.doe@example.com" }'
```

The groups feature and its limits on the number of groups and members depend on your plan.

| Case | Result |
|------|--------|
| Add a member of your business | `201` |
| Add a user who is already in the group | `409` `already a member of this group`. You can treat this as success. |
| Add an invited user | `409` `user has not accepted the invitation yet`. Add them after they accept. |
| Add a user who is not in your business | `404` |
| Send both `email` and `user_id`, or neither | `400` |
| The group name or `external_id` is already used in your business | `409` |
| Too many groups, or too many members in a group | `400` |
| Remove a user who is not in the group | `200`, no change |
| A group of another business, or a deleted group | `404` |

Deleting a group is permanent. Its members stay in your business.

## Retries and conflicts

The API is designed so that a client can safely retry a request after a timeout:

| Request | If it already happened |
|---------|------------------------|
| Create an invited user again | `200` with the invited user, no second email |
| Suspend or reactivate again | `200` with the unchanged user |
| Add a role the user has, or remove one the user does not have | `200` with the unchanged user |
| Add a group member again | `409 already a member of this group`. The user is in the group, so you can treat this as success. |
| Remove a user who is not in the group | `200` |
| Delete a user again | `404` |

Other `409` responses tell you to change the request:

| `message` | Cause |
|-----------|-------|
| `already exists in this business` | A user with this email is already a member. |
| `email already in use` | The email belongs to a member of another business, or to a pending invitation from another business. |
| `external_id already exists in this business` | Another user already has this `external_id`. |
| `user has not accepted the invitation yet` | You tried to change the role of an invited user, or add them to a group. |
| `cannot change the role of the business's last admin` | Your business needs at least one admin. |
| `a user cannot suspend or reactivate their own account` | The token belongs to the target user. |

For the shape of the error body, see [Error Handling](/error-handling).

## User Management API or SCIM

Both interfaces change the same users and groups. Choose by where your user data lives:

| | User Management API | SCIM |
|-|---------------------|------|
| Who calls Skribble | Your own code | Your identity provider, for example Microsoft Entra ID |
| Protocol | Skribble REST API (`/v3`) | SCIM 2.0 (`/scim/v2`) |
| Authentication | Bearer token from the API login | OAuth 2.0 client credentials |
| Typical use | HR systems, custom portals, scripts | Directory sync without custom code |

## Next steps

- [User Management API v3 reference](/api/user-management-v3): all endpoints, fields, and error examples.
- [SCIM](/user-management-api-scim): connect your identity provider.
- [Limits](/limits): rate limits and other API limits.
