Wallet Balance
/wallet
Returns the authenticated user's wallet balance. Requires bearer authentication.
curl -X GET "https://www.logspanel.com/api/v1/wallet" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_KEY_HERE"
const response = await fetch('https://www.logspanel.com/api/v1/wallet', {
method: 'GET',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY_HERE'
}
});
const data = await response.json();
console.log(data);
import requests
url = 'https://www.logspanel.com/api/v1/wallet'
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY_HERE'
}
response = requests.get(url, headers=headers)
print(response.json())
<?php
$ch = curl_init();
$headers = [
'Accept: application/json',
'Authorization: Bearer YOUR_API_KEY_HERE'
];
curl_setopt_array($ch, [
CURLOPT_URL => 'https://www.logspanel.com/api/v1/wallet',
CURLOPT_HTTPHEADER => $headers,
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
print_r($data);
curl_close($ch);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://www.logspanel.com/api/v1/wallet"))
.header("Accept", "application/json")
.header("Authorization", "Bearer YOUR_API_KEY_HERE")
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{
"success": true,
"data": {
"balance": "12500.00",
"currency": "NGN"
}
}