URL: /api/user
Method: GET
This API endpoint retrieves the authenticated user’s account details using their API credentials.
To access this endpoint, users must include their API key and secret key in the request headers.
See usage example in the code snippets below:
GET request for user details:
Content-Type: application/json
api-key: your-api-key
secret-key: your-secret-key
Response:
{
"success": true,
"data": {
"username": "iabcodes",
"email": "user@example.com",
"balance": 5200,
"role": "USER",
"userLevel": "basic",
"banks": [
{
"bankName": "GTBank",
"accountNumber": "0123456789",
"accountName": "User Doe"
}
],
"banned": false,
"isPinCreated": true
}
}