Unsuspend user

POST https://app.speybooks.com/api/v1/admin/users/{id}/unsuspend

Reactivate a suspended user account. Clears all suspension fields and re-enables login. Works for both temporary suspensions and permanent bans.

Sets is_active = true, clears suspended_at, suspended_reason, suspended_permanent.

Returns 404 if the user is not found or is not currently suspended (is_active = false).

Side Effects

  • Writes USER_UNSUSPENDED to admin_audit_log

Note: existing sessions were deleted during suspension. The user must log in again.

Path parameters

id string required
User ID. Must be currently suspended.

Response

200 User reactivated.

Error codes

404 User not found or not suspended.