API Reference

Get queries left

Return the remaining query balance for an API key without debiting a query.

POSThttps://api.argonpay.app/graphqlgetQueriesLeft

Returns the remaining query balance for your API key. Does not debit a query.

Endpoint

POST https://api.argonpay.app/graphql

Query

GraphQL
query GetQueriesLeft($apiKey: String!) {
getQueriesLeft(apiKey: $apiKey) {
code
message
queriesLeft
apiKey {
id
key
firstName
lastName
email
wallet
queriesLeft
createdAt
}
}
}

Arguments

NameTypeRequiredDescription
apiKeyString!YesYour merchant API key

Example variables

JSON
{
"apiKey": "YOUR_API_KEY"
}

Success response (shape)

JSON
{
"data": {
"getQueriesLeft": {
"code": 200,
"message": "OK",
"queriesLeft": 480,
"apiKey": {
"queriesLeft": 480,
"wallet": "0x...",
"email": "merchant@example.com"
}
}
}
}