/{app_slug}/v1/admin/users/{user_id}/statusAuthChange an end-user status (active / suspended / deactivated)
Setting status to `suspended` or `deactivated` also revokes all active sessions for the user (same behaviour as the auth-admin equivalent).
Path parameters
app_slug*stringSlug of the app.
user_id*stringId of the user.
Request body
status*enum (3)New account status: `active`, `suspended` or `deactivated`.
Response · 200
id*stringUnique identifier of the end user.
username*stringThe end user's username, unique within the app.
display_name*stringHuman-readable name of the end user.
status*stringAccount status: `active`, `suspended` or `deactivated`.
role*stringApp-level role name of the user, or `null` for none.
joined_at*string · date-timeWhen the member joined the tenant (ISO 8601).
created_at*string · date-timeWhen the end user was created (ISO 8601).
email*stringEmail address.
email_verified_at*string · date-timeWhen the primary email was verified, or `null` until it is.
active_session_count*numberSessions of the user that are currently active.
last_used_at*string · date-timeWhen the end user was last used (ISO 8601), or `null` if never.
Example
Request
PATCH https://api.auth.productcraft.co/{app_slug}/v1/admin/users/{user_id}/status
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"status": "active"
}Response
{
"id": "string",
"username": "string",
"display_name": "string",
"status": "string",
"role": "string",
"joined_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"email": "string",
"email_verified_at": "2026-01-01T00:00:00.000Z",
"active_session_count": 0,
"last_used_at": "2026-01-01T00:00:00.000Z"
}