The Fungies API uses API keys to authenticate requests. Every request must include valid authentication headers.
Getting Your API Keys
You can create and manage your API keys in the Fungies Dashboard.
You’ll receive two types of keys:
Include your API keys in the request headers:
Example Request
Here’s an example of a properly authenticated request:
Security Best Practices
Your API keys grant access to your Fungies account. Keep them secure and never expose them publicly.
Follow these guidelines to protect your keys:
- Never commit keys to version control - Use environment variables instead
- Don’t expose keys in client-side code - Secret keys should only be used server-side
- Rotate keys regularly - Generate new keys periodically and revoke old ones
- Use separate keys for different environments - Keep production and development keys separate
HTTPS Required
All API requests must be made over HTTPS. Requests made over plain HTTP will be rejected.
Error Responses
If authentication fails, you’ll receive one of these responses: