Unauthorized 401 error
1 min read
If you’re encountering an Unauthorized (401) error, it’s likely due to issues with the API key or the permissions of the user role:
Possible causes #
- API key issue: Ensure that the API key is valid and properly passed in the request headers
- User role permissions: Check if the user role associated with the API key has sufficient permissions to access the API endpoint
- Subscription plan: Confirm that your current plan supports the API call you’re trying to make
Solution #
- Regenerate API key: Go to your profile settings and regenerate a new API key
- Verify permissions: Make sure your role allows you to perform the desired actions
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