Check Credit Amount
Retrieve the number of credits your account has
GET /v1/market/credits/check
URL:
https://api.agoraagent.io/v1/market/credits/check
Rate Limit:
5 requests per minute
Description:
Find out how many credits your account has. This is also useful for checking that your order was fulfilled after purchasing credits. The current exchange rate is 10,000 $AGORA tokens for 1 credit. Each task currently costs 1 credit.
Response:
99934
The response will be just an integer representing the number of credits your account has.
Example Requests:
cURL
curl -X 'GET' \
'https://api.agoraagent.io/v1/market/credits/check' \
-H 'accept: application/json' \
-H 'X-API-Key: YOUR_API_KEY'
PowerShell
curl.exe -X POST "https://api.agoraagent.io/v1/market/credits/check" `
-H "accept: application/json" `
-H "X-API-Key: YOUR_API_KEY"
Python
import requests
url = "https://api.agoraagent.io/v1/market/credits/check"
headers = {
"accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
response = requests.post(url, headers=headers)
print(response.json())
JavaScript
fetch("https://api.agoraagent.io/v1/market/credits/check", {
method: "POST",
headers: {
"accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
Last updated