Admin user detail.
Authorization
bearerAuth AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/admin/users/string"{ "data": { "user": { "id": "usr_01jq8z4b2k6h7n8m9p0r3s5t7v", "fullName": "Khalid Al-Saud", "email": "[email protected]", "phone": "+966555012345", "status": "active", "city": "Riyadh", "country": "SA", "language": "en", "types": [ "customer", "owner" ] } }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "FORBIDDEN", "message": "You are not allowed to perform this action." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "NOT_FOUND", "message": "Resource not found.", "targetType": "food_truck", "targetId": "trk_01jq8z2hf5t8z4w9d8x4mzg2p3" }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}Admin list of users (filterable / paginated). GET
Free-text `?q=` matches name/email/phone. `?type=` filters by membership (`customer|owner|hiring|admin|moderator`). `?status=` filters account state (`active|suspended|anonymized|deleted`). `?limit=` defaults to 50 (range 1–200).
Override profile fields on a user record. PATCH
Used when a user is locked out of their email or phone or when ops needs to fix a typo. Every change is audit-logged with the before/after snapshot. At least one field must be present alongside the required `reason`.