See Authentication for more detail.
Paste this into your terminal (replace YOUR_API_TOKEN):
curl -X GET "https://api.ocean.io/v2/credits/balance" \
-H "X-Api-Token: YOUR_API_TOKEN"import requests
response = requests.get(
'https://api.ocean.io/v2/credits/balance',
headers={'X-Api-Token': 'YOUR_API_TOKEN'},
).json()const response = await fetch('https://api.ocean.io/v2/credits/balance', {
headers: { 'X-Api-Token': 'YOUR_API_TOKEN' },
}).then(r => r.json());{
"credits": { "oneTime": 0, "recurrent": 10000 },
"emailCredits": { "oneTime": 0, "recurrent": 0 },
"phoneCredits": { "oneTime": 0, "recurrent": 0 },
"previewCredits": { "oneTime": 0, "recurrent": 0 },
"dailyLimitRateLeft": 1000,
"dailyLimitRateSecondsToReset": 86400
}A 200 OK with recurrent > 0 means you're ready.