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:
json
POST https://api.capsolver.com/getBalance
Host: api.capsolver.com
Content-Type: application/json
{
"clientKey":"YOUR_API_KEY",
}Response Example:
json
{
"errorId": 0,
"balance": 1071810,
"packages": []
}Request Params
| Params | Type | Required | Note |
|---|---|---|---|
| clientKey | String | Yes | Client account key, can be found here |
Response Structure
| Parameters | Type | Description |
|---|---|---|
| errorId | Integer | Error message: 0 - no error 1 - with error |
| errorCode | String | errorCode: full list of errors |
| errorDescription | String | Short description of the error |
| balance | Decimal | Account balance value in USD |
| packages | Array | Monthly/Weekly Packages |
CapSolver