Guide
API Getstate

getState: get your service running state

You can use getState to monitor the processing status of your services and troubleshoot business problems yourself.

Request Example:

POST https://api.capsolver.com/getBalance
Host: api.capsolver.com
Content-Type: application/json
 
{
    "clientKey":"YOUR_API_KEY",
}

Response Example:

{
    "errorId": 0,
    "balance": 1071810,
    "packages": []
}

Request Params

ParamsTypeRequiredNote
clientKeyStringYesClient account key, can be found here

Response Structure

ParametersTypeDescription
errorIdIntegerError message:
0 - no error
1 - with error
errorCodeStringerrorCode: full list of errors
errorDescriptionStringShort description of the error
balanceDecimalAccount balance value in USD
packagesArrayMonthly/Weekly Packages