Skip to main content
All REST API endpoints require authentication via Bearer token.

Getting Credentials

See the TypeScript Starter Kit for step-by-step instructions on:
  1. Creating an API Wallet, a separate wallet for signing API transactions (not your main login wallet).
  2. Getting a Bearer Token from Geomi.

Using Authentication

Include two headers with every authenticated request: Origin (your application’s origin URL) and Authorization (Bearer token from Geomi, see above)
curl -H "Origin: https://netna-app.decibel.trade/trade" \
     -H "Authorization: Bearer <KEY>" \
     https://api.netna.aptoslabs.com/decibel/
Replace <KEY> with your Bearer token from Geomi.

Security Best Practices

  • Never commit tokens to version control
  • Use environment variables in your code
  • Rotate tokens periodically

TypeScript Starter Kit

Step-by-step guide to creating API credentials

Error Handling

How to handle authentication errors