Authentication

Prove who you are with your rsk_ key.


Every request needs your API key. Send it in whichever way fits your setup. All three are equivalent.

  • Query string: ?key=rsk_...
  • Header: X-Api-Key: rsk_...
  • Header: Authorization: Bearer rsk_...
curl "https://nfa.pub/api/v1/balance?key=rsk_your_key"
curl -H "X-Api-Key: rsk_your_key" "https://nfa.pub/api/v1/balance"

Safe retries

On any purchase, send a unique Idempotency-Key header. If the request times out and you retry with the same key, you get the same result back instead of being charged twice.

curl -H "Idempotency-Key: order-8421" \
  "https://nfa.pub/api/v1/cs2?key=rsk_your_key&type=prime&quantity=1"

Keep your key private. If it leaks, regenerate it on your dashboard and the old one stops working immediately.