Skip to content

API Integration

All API endpoints require authentication using API keys. You can generate API keys in the API Key Management section.

Generate API key via GUI

You can generate API keys from the Token Minter app, check out Generate API keys from the Token Minter App section.

To use the API endpoints, you need to make authenticated requests with your API key in the api-key header.

sh
curl -X POST \
  https://api.token.web3sandpit.com/api/v1/endpoint \
  -H 'Content-Type: application/json' \
  -H 'api-key: your-api-key-here' \
  -d '{...}'
http
POST https://api.token.web3sandpit.com/api/v1/endpoint HTTP/1.1
api-key: your-api-key-here
Content-Type: application/json
{...}
js
await fetch('https://api.token.web3sandpit.com/api/v1/endpoint', {
  method: 'POST',
  headers: {
    'api-key': 'your-api-key-here',
  },
  // ...
});
js
await axios.post('https://api.token.web3sandpit.com/api/v1/endpoint', {...}, {
  headers: {
    'api-key': 'your-api-key-here',
  },
});

Generating API key from the Token Minter App

  1. Log into the Token Minter App.
  2. Navigate to Settings in the top navigation bar.
  3. Click on the Keys and Secrets tab from side menu.
  4. Click Create API button.
API Keys Section
  1. Copy your API key and store it securely.
Copy API Key

CAUTION!

Maintain the confidentiality of your API key by keeping it private. If it is compromised, promptly delete the key and create a new one.

API Documentation created with ❤️ by TrackGenesis