API Docs

User Details Endpoint

Retrieve authenticated user account details.

Endpoint

URL: /api/user

Methods: GET

Description

This API endpoint retrieves the authenticated user's account details using their API credentials.

Authentication

To access this endpoint, users must include their API key and secret key in the request headers.

Request Headers

  • api-key (string, required): The API key of the user.
  • secret-key (string, required): The secret key of the user.

Usage Example

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
  }
}
IABCONCEPT