02 authentication
Authentication
Key Type
Format
Use For
Safe to Expose?
Secret Key (Backend)
curl https://api.stablix.xyz/api/v1/invoices \
-H "X-API-Key: sk_live_your_secret_key" \
-H "Content-Type: application/json" \
-d '{"amount": 99.99, "currency": "USDC", "chain": "solana"}'// Node.js
const response = await fetch('https://api.stablix.xyz/api/v1/invoices', {
method: 'POST',
headers: {
'X-API-Key': process.env.STABLIX_SECRET_KEY,
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 99.99,
currency: 'USDC',
chain: 'solana'
})
});Public Key (Frontend)
Test vs Live Keys
Environment
Secret Key
Public Key
Getting Your Keys
Environment Variables
Error Responses
Status
Error Code
Description
Last updated