API & Authentication

”Invalid API Key” Error

Problem: Receiving 401 Unauthorized errors. Solutions:
  1. Regenerate your API key from dashboard
  2. Ensure no extra spaces before/after the key
  3. Use format: Authorization: Bearer YOUR_API_KEY
  4. Check key hasn’t expired or been revoked

Rate Limiting Issues

Problem: Receiving 429 Too Many Requests errors. Solutions:
  1. Check your current plan’s rate limits
  2. Implement exponential backoff in your code
  3. Batch operations where possible
  4. Consider upgrading to a higher tier for increased limits

Getting Help

If these solutions don’t resolve your issue:
  1. Documentation: Review relevant guides in this documentation
  2. Community: Ask in our Slack community (paid plans)
  3. Support: Email support@roark.ai with:
    • Your account email
    • Error messages or screenshots
    • Steps to reproduce the issue
    • Time when issue occurred (with timezone)