Check SUBTC API Key Status
After creating a SUBTC API key, you can verify that it works by checking its status.
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" \
-H "X-SUBTC-KEY: $KEY" \
-H "Content-Type: application/json"
Example response:
{
"ok": true,
"request_id": "9532c44cb4ff0c8d",
"result": {
"key": "SUBTC-KEY-c942534db29afa0a50957ef909c8ea4a4fb17bf5392b1682",
"wallet_count": 0
}
}
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:
https://subtc.net/api