Authentication
The Metafide API uses API keys to authenticate requests. All API requests must include a valid API key in the request headers.
Generating an API Key
- Go to https://spoton.metafide.io/wallet
- Connect your wallet
- Generate a new API key
- Copy and store it securely — it will not be shown again
Your API key will look like this:
metafide_c53bdc18f60731f7689501d0f5bc3a06
warning
Never expose your API key in client-side code or public repositories. Treat it like a password.
Using Your API Key
Include your API key in the headers of every request:
headers: {
'Accept': '*/*',
'x-api-key': 'metafide_11111111111111111111111111111'
}
Example Request
const response = await fetch('https://api.metafide.io/v1/surge/games/live-price?asset=BTC_USDT', {
method: 'GET',
headers: {
'Accept': '*/*',
'x-api-key': 'metafide_11111111111111111111111111111',
},
});
Authentication Errors
| Code | Reason |
|---|---|
401 | API key is missing or invalid |
403 | API key does not have permission to access this resource |
If you encounter these errors, double-check that your API key is correctly included in the x-api-key header and that it was copied in full from the wallet page.