Overview
Offergrid uses Team API Keys for authentication. Your API key identifies your organization and determines whether you have provider, reseller, or hybrid access to the platform.Getting Your API Key
Step 1: Sign In to Offergrid
Visit offergrid.io and sign in to your account.Step 2: Navigate to Settings
Go to your team settings or API settings page in the dashboard.Step 3: Generate an API Key
Click Generate New API Key and securely save the key. You won’t be able to see it again after leaving the page.Using Your API Key
Include your API key in thex-api-key header with every API request:
Example Requests
API Key Permissions
Your API key’s permissions are based on your team’s role:Provider Access
If your team is registered as a provider, you can access:/provider/offers- Create and manage service offerings/provider/orders- View and fulfill orders from resellers
Reseller Access
If your team is registered as a reseller, you can access:/reseller/catalog- Browse available service offers/reseller/orders- Place and track orders
Hybrid Access
Some teams have both provider and reseller roles. Hybrid teams can access all endpoints with the same API key.Best Practices
Store keys securely
Store keys securely
Use environment variables or secure key management systems (like AWS Secrets Manager, Azure Key Vault, or HashiCorp Vault) to store API keys. Never hardcode keys in your application code.
Rotate keys regularly
Rotate keys regularly
Generate new API keys periodically and revoke old ones to minimize security risks.
Use different keys for different environments
Use different keys for different environments
Use separate API keys for development, staging, and production environments.
Monitor key usage
Monitor key usage
Track API key usage in your Offergrid dashboard to detect any unusual activity.
Revoke compromised keys immediately
Revoke compromised keys immediately
If you suspect an API key has been exposed, revoke it immediately and generate a new one.
API Base URLs
- Production
- Local Development
Error Responses
If authentication fails, you’ll receive a401 Unauthorized response:
- Missing API key: The
x-api-keyheader was not provided - Invalid API key: The provided key doesn’t exist or has been revoked
- Insufficient permissions: Your team role doesn’t have access to the requested endpoint
Need Help?
If you’re having trouble with authentication:- Check that you’re using the correct header name (
x-api-key) - Verify that your API key hasn’t been revoked
- Ensure your team has the appropriate provider or reseller role
- Contact support at support@offergrid.io