Forbidden 403 error
1 min read
A 403 Forbidden error typically occurs when:
- The API key does not have the necessary permissions
- The user role associated with the API key cannot execute the requested operation
Solutions #
- Regenerate API key: Follow these steps to generate a new key:
- Navigate to Preferences
- Choose Advanced tab
- Find the API key section and click on Generate
- A window for generating the API key will appear
- Click on Generate
- Once the key is generated, close the window
- Check permissions: Ensure that your user role allows access to the requested resources
- Verify subscription: Make sure your subscription plan allows access to the desired API features
If you’re a Project manager or Team manager and see a 403 error when trying to generate a report, it’s likely because amounts are hidden by default and you don’t have access to Workspace settings.
To work around this, add the following parameter in your request to generate the report without amounts:
"amountShown": "HIDE_AMOUNT"
This allows the report to run successfully without showing the amounts.
Was this article helpful?
Thank you! If you’d like a member of our support team to respond to you, please drop us a note at support@clockify.me