Skip to main content
POST
/
user-management
/
v1
/
activate-user
Activate a workspace user
curl --request POST \
  --url https://api.langdock.com/user-management/v1/activate-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "user@example.com"
}
'
{
  "status": "success",
  "message": "User activated"
}
⚠️ Using our API via a dedicated deployment? Just replace api.langdock.com with your deployment’s base URL: <deployment-url>/api/public
This endpoint adds a user back to your workspace. Previously deactivated users are restored with their original role, join date, and all associated data. Users who have never been in the workspace receive the default workspace role.

Prerequisites

  • API Key with the USER_MANAGEMENT_API scope
  • The API key must be created by a workspace admin

Behavior

  • Previously deactivated user? Restored with their original role and join date.
  • New user (never been a member)? Added with the workspace default role.
  • User not found? Returns 404.
  • Already an active member? Returns 409.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Body

application/json
email
string<email>
required

Email address of the user

Example:

"user@example.com"

Response

User activated successfully

status
enum<string>
required

Always "success" when the request is processed

Available options:
success
Example:

"success"

message
string
required

Human-readable summary of the result

Example:

"User deactivated"