Get User by ID
GET/api/users/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| 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"
}