Check SUBTC API Key Status
After creating a SUBTC API key, you can verify that it works by checking its status.<br>This request confirms the key is valid and shows how many wallets are linked to it.
Command:
curl -sS -X POST "https://api.subtc.net/v1/btc?mode=key_status" \<br>-H "X-SUBTC-KEY: $KEY" \<br>-H "Content-Type: application/json"
Example response:
{<br>"ok": true,<br>"request_id": "9532c44cb4ff0c8d",<br>"result": {<br>"key": "SUBTC-KEY-c942534db29afa0a50957ef909c8ea4a4fb17bf5392b1682",<br>"wallet_count": 0<br>}<br>}
What happened:
The gateway authenticated the request using the header:
X-SUBTC-KEY
The response confirms the key is active and currently has no wallets attached.
API Base:<br>https://subtc.net/api