Guides
API Keys
Manage your API keys to authenticate requests and connect your products to IndieFooter.
Your API Key
Here's your current API key. Use this to authenticate your IndieFooter integration:
IF_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxLog in to your dashboard to see your actual API key
Not logged in? Sign in to your dashboard to view your actual API key. Go to Dashboard →
Using Your Key
Once you have your API key, use it in your application:
Basic Usage
app/layout.tsx
import { IndieFooter } from 'indiefooter';
export default function RootLayout({ children }) {
return (
<html>
<body>
{children}
<IndieFooter if_key="IF_your_api_key_here" />
</body>
</html>
);
}With Environment Variables (Recommended)
For security, store your API key in environment variables:
.env.local
NEXT_PUBLIC_INDIEFOOTER_KEY=IF_your_api_key_hereapp/layout.tsx
import { IndieFooter } from 'indiefooter';
export default function RootLayout({ children }) {
return (
<html>
<body>
{children}
<IndieFooter
apiKey={process.env.NEXT_PUBLIC_INDIEFOOTER_KEY}
/>
</body>
</html>
);
}Key Security
Follow these best practices to keep your API keys secure:
Do's
- ✓ Use environment variables
- ✓ Add .env to .gitignore
- ✓ Rotate keys regularly
- ✓ Use separate keys per environment
- ✓ Monitor key usage
Don'ts
- ✗ Hardcode keys in source code
- ✗ Commit keys to version control
- ✗ Share keys publicly
- ✗ Use same key everywhere
- ✗ Ignore suspicious activity
Troubleshooting
My API key isn't working
- • Check that you've copied the entire key (starts with
IF_) - • Verify the key hasn't been revoked in your dashboard
- • Make sure you're using the correct environment variable name
- • Restart your development server after changing .env files
I lost my API key
API keys are only shown once when created. If you've lost your key, you'll need to create a new one from your dashboard. The old key will continue to work until you revoke it.
How many API keys can I create?
Free accounts can create up to 3 API keys. Paid plans have unlimited API keys.