API Base URL
How Authentication Works
TribeMade API uses API key authentication via theX-API-Key header. All API requests must include your API key to authenticate.
API keys are store-specific. Each store has its own unique API key, and the key only works for that store’s data.
Getting Your API Key
1
Log in to your dashboard
Visit TribeMade Dashboard and select your store.
2
Navigate to Developer section
Click on Developer in the sidebar (below Settings).
3
Generate API key
Click “Generate API Key” to create your key. It will be displayed immediately.
4
Store securely
Copy your API key and store it securely. You’ll need it for all API requests.
API Key Format
Your API key follows this pattern:tb-a1b2-c3d-e4f5
- Length: 16 characters
- Prefix: Always starts with
tb- - Scope: Store-specific
Using Your API Key
Include your API key in theX-API-Key header for every API request.
Authentication Errors
401 Unauthorized - Missing API Key
X-API-Key header in your request.
Fix: Add the header with your API key:
401 Unauthorized - Invalid API Key
- The API key is incorrect or has been regenerated
- The API key belongs to a different store
- The API key format is invalid
Security Best Practices
Never expose API keys publicly
Never expose API keys publicly
Don’t:
- Commit API keys to Git/GitHub
- Include API keys in client-side JavaScript
- Share API keys in public forums or chat
- Hardcode API keys in your source code
- Store API keys in environment variables
- Use server-side code only
- Keep API keys in secure vaults (AWS Secrets Manager, etc.)
Regenerate compromised keys immediately
Regenerate compromised keys immediately
If your API key is exposed or compromised:
- Go to Developer section in your dashboard
- Generate a new API key immediately
- Update your application with the new key
- The old key will stop working instantly
Use environment variables
Use environment variables
Store your API key in environment variables:Then access it in your code:
.env
Python
Node.js
Never log API keys
Never log API keys
Avoid logging API keys in:
- Application logs
- Error messages
- Debug output
- Monitoring dashboards
Use HTTPS only
Use HTTPS only
Always use HTTPS when making API requests. Never use HTTP - it transmits your API key in plain text.✅ Correct:
❌ Wrong:
https://api.tribemade.in❌ Wrong:
http://api.tribemade.inScope and Permissions
Your API key has full access to:- ✅ Create, edit, and delete products
- ✅ View order details
- ✅ Update order statuses
- ✅ All data for your specific store
- ❌ Access other stores’ data
- ❌ Modify store settings
- ❌ Create or delete store
- ❌ Manage team members

