Skip to content
LogoLogo

Authentication

All BLOX merchant API requests require authentication. This section covers how to authenticate your API requests securely.

Wallet, Onramp (Checkout), and Payout share the same wire format. Payout has a slightly different freshness / replay policy — see Payout differences.

Overview

BLOX uses a two-layer authentication approach:

  1. API Key - Identifies your application and grants access to the API.
  2. Request Signature - Protects state-changing requests (POST, PUT, etc.) from tampering using RFC 9421 HTTP Message Signatures.

Authentication Methods

Quick Reference

Required Headers

HeaderRequiredDescription
blox-api-keyAlwaysYour API key (secret)
Content-TypeWith BodySet to application/json
SignatureState-changingRFC 9421 cryptographic signature
Signature-InputState-changingMetadata for the signature
Content-DigestWith BodyRFC 9421 digest of the request body

Example Request (Read-only)

curl "https://api.blox.my/v1/health" \
  -H "blox-api-key: YOUR_API_KEY"

Next Steps

  1. Get API Keys — contact the BLOX team to enable access.
  2. Learn request signing for secure API calls.
  3. Test in Sandbox before going live.