Secure your Crave.js API with proper authentication and rate limiting
API Type | Subscription Required | Features Included |
---|---|---|
Storefront APIs | Any paid Crave subscription | Menu browsing, cart management, payment processing, basic customer data |
Admin APIs | Enterprise tier only | Order management, menu editing, analytics, webhooks |
X-RateLimit-Remaining
: Requests remaining in current windowX-RateLimit-Reset
: When the rate limit resets (Unix timestamp)Code | Description | Action |
---|---|---|
401 | Invalid API key | Check API key validity |
403 | Insufficient permissions | Verify endpoint access |
429 | Rate limit exceeded | Implement retry logic |
500 | Server error | Check API status |