User
GET
/user
Get Profile
Retrieve the authenticated user's profile information.
Required abilities:
read
Headers
| Authorization | Bearer {token} |
| Accept | application/json |
Response
{
"success": true,
"data": {
"id": 1,
"name": "John Doe",
"email": "[email protected]",
"phone": "+62812345678",
"credit": 150,
"email_verified_at": "2024-01-01T00:00:00.000000Z",
"two_factor_enabled": false,
"created_at": "2024-01-01T00:00:00.000000Z"
}
}
GET
/user/credit
Get Credit Balance
Retrieve the authenticated user's current credit balance.
Required abilities:
read
Headers
| Authorization | Bearer {token} |
| Accept | application/json |
Response
{
"success": true,
"data": {
"credit": 150,
"formatted_credit": "150.00"
}
}