GET
https://api.cryptohopper.com/v1/hopper/{id}/troubleshooter
Runs the troubleshooter checks for the hopper, such as subscription, enabled state and config errors, and returns each check with its result. The checks depend on the bot type.
OAuth scope:
read About scopes
status is 1 when the check passed and 0 when it failed.
Example request
curl "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/troubleshooter" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/hopper/HOPPER_ID/troubleshooter', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/hopper/HOPPER_ID/troubleshooter",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/hopper/HOPPER_ID/troubleshooter');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
access-token |
string | Required | The OAuth access token of the user. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | Required | Hopper ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
platform |
string | Optional | web or app: picks the wording and help links for the website or the mobile app. Default web. |
lang |
string | Optional | Language of the returned texts, as a language code such as nl or de. Default the Accept-Language header, else English. |
Response
{
"data": {
"troubleshooter": [
{
"title": "Do you have an active subscription?",
"status": 1,
"description": "You have an active and valid subscription for this bot."
},
{
"title": "Is the bot enabled?",
"status": 1,
"description": "Yes, the bot is enabled."
}
]
}
}