---
title: "Deactivate a user (App users API)"
description: "Deactivate a user of a Softr app with the App Users API. The user keeps their account but can no longer sign in. Request, headers and an example with curl."
canonical: "https://docs.softr.io/api/users/deactivate-user"
updated: "2026-12-04"
---

# Deactivate a user (App users API)

Blocks the user from signing in, and keeps their account and data. A deactivated user doesn't count toward your plan's user limit. Reactivate them with [Activate a user](/api/users/activate-user).

## Request

`POST https://studio-api.softr.io/v1/api/users/{email}/deactivate`

| Header          | Value                                                                                                           |
| --------------- | --------------------------------------------------------------------------------------------------------------- |
| `Softr-Api-Key` | Your API token. Create one under **API tokens** in your account menu. See [Authentication](/api/authentication) |
| `Softr-Domain`  | Your app's Softr subdomain or custom domain, such as `acme.softr.app`                                           |

Replace `{email}` with the user's email.

## Example

```bash
curl --request POST 'https://studio-api.softr.io/v1/api/users/{email}/deactivate' \
  --header 'Softr-Api-Key: <your API token>' \
  --header 'Softr-Domain: acme.softr.app'
```

## Errors

See [Errors and rate limits](/api/errors-and-limits) for the status codes and the rate limits.

## Related

To manage users without code, see [Add and manage users](/apps/users). To manage them from a workflow, use the app user steps. See [Steps](/workflows/steps#app-user-steps).
