401 Unauthorized

401 Unauthorized

401 Unauthorized error indicates that the Chomp API has rejected your request due to authentication, billing, or rate limit issues.

Common Causes

  1. Exceeded Rate Limits: (Limited and Standard Plans) You have exceeded your allowed Requests Per Minute (RPM). The API will block further requests until the next minute window. It is recommended to implement exponential backoff retry logic.
  2. Missing User ID: (Premium Plans) You are making a request without the mandatory user_id parameter. Premium plans require this parameter for Monthly Active User (MAU) billing.
  3. Invalid API Key: Your api_key parameter is missing, incorrect, or has been revoked.

Troubleshooting Steps

  • Verify that your API key is correct and actively passing in the request URL.
  • If you are on a Premium plan, ensure a unique user_id is appended to every request. 
  • If you require unlimited RPM, consider upgrading to the Premium Plan.
  • For further assistance, please contact the Support Team.