List users
Enterprise Only
This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.
Method: GET
URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/users
Authorization: Bearer <token>
Query Parameters:
| Key | Format | Required | Description |
|---|---|---|---|
keyword | string | optional | Search users by name or email |
exclude | array | optional | Exclude users by ID |
Response:
- 200
- 401
- 403
{
"data": [
{
"id": 1,
"name": "John Doe",
"email": "john@example.com",
"is_admin": true,
"settings": {},
"email_verified_at": "Jan 15, 2025 10:30 AM",
"created_at": "Jan 15, 2025 10:30 AM"
}
],
"links": {
"first": "https://example.com/mixpost/api/panel/users?page=1",
"last": "https://example.com/mixpost/api/panel/users?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 20,
"to": 1,
"total": 1
}
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}