Get User by ID

GET/api/users/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number User unique ID
curl -X GET "https://yoursite.com/api/users/123" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

{
		"id": "1",
		"first_name": "John",
		"last_name": "Doe",
		"user_type": "staff",
		"is_admin": "1",
		"role_id": "0",
		"email": "john@example.com",
		"image": null,
		"status": "active",
		"client_id": "0",
		"job_title": "Admin",
		"phone": "1234567890",
		"gender": "male",
		"created_at": "2021-09-12 10:00:00"
}
MethodGET
Path/api/users/{id}
GroupUsers
Sincev1.0.0
Defined inRestApi/Controllers/UsersController.php