Body Parameters
| Field |
Type |
Status |
Description |
| email |
string |
required |
Registered email |
| password |
string |
required |
Account password |
}
🔐
Requires a valid Bearer token in the Authorization header.
curl --request POST \
--url https://yourapp.com/api/auth/logout \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json'
{
"status": "success",
"message": "Logged out successfully"
}
🔐
Requires a valid Bearer token in the Authorization header.
curl --request GET \
--url https://yourapp.com/api/auth/profile \
--header 'Authorization: Bearer YOUR_TOKEN'
{
"status": "success",
"data": {
"id": 1,
"name": "John Doe",
"email": "john@example.com",
"role": "customer",
"email_verified_at": "2024-01-01T00:00:00Z",
"created_at": "2024-01-01T00:00:00Z"
}
}
Body Parameters
| Field |
Type |
Status |
Description |
| email |
string |
required |
Registered email address |
Body Parameters
| Field |
Type |
Status |
Description |
| token |
string |
required |
Reset token from email |
| email |
string |
required |
User's email address |
| password |
string |
required |
New password (min 8 chars) |
| password_confirmation |
string |
required |
Must match password |
Body Parameters
| Field |
Type |
Status |
Description |
| token |
string |
required |
Verification token from email |
| email |
string |
required |
User's email address |
🛡️
These endpoints require Super Admin role and a valid Bearer token.
Query Parameters
| Field |
Type |
Status |
Description |
| page |
integer |
optional |
Page number (default: 1) |
| per_page |
integer |
optional |
Results per page (default: 15) |
| role |
string |
optional |
Filter by role |
URL Parameters
| Field |
Type |
Status |
Description |
| id |
integer |
required |
User ID |
URL Parameters
| Field |
Type |
Status |
Description |
| id |
integer |
required |
User ID to delete |