API Reference
Read the current credit balance
Read the current credit balance
curl --request GET \
--url https://developer-api.seekout.io/v1/credits/balanceimport requests
url = "https://developer-api.seekout.io/v1/credits/balance"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://developer-api.seekout.io/v1/credits/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://developer-api.seekout.io/v1/credits/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://developer-api.seekout.io/v1/credits/balance"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://developer-api.seekout.io/v1/credits/balance")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer-api.seekout.io/v1/credits/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"organization_id": "<string>",
"workspace_id": "<string>",
"available_microunits": 123,
"as_of": "2023-11-07T05:31:56Z"
}Response
200 - application/json
Successful Response
The caller's spendable position, as Billing last reported it.
available_microunits is the number that answers "can I do this?" —
balance minus what is already held against work in flight. as_of says
when Billing observed it, because this is a cached read.
Was this page helpful?
⌘I
Read the current credit balance
curl --request GET \
--url https://developer-api.seekout.io/v1/credits/balanceimport requests
url = "https://developer-api.seekout.io/v1/credits/balance"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://developer-api.seekout.io/v1/credits/balance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://developer-api.seekout.io/v1/credits/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://developer-api.seekout.io/v1/credits/balance"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://developer-api.seekout.io/v1/credits/balance")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer-api.seekout.io/v1/credits/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"organization_id": "<string>",
"workspace_id": "<string>",
"available_microunits": 123,
"as_of": "2023-11-07T05:31:56Z"
}