Skip to main content

Troubleshooting: "403 Forbidden" Error with the Habitify API

Written by Habitify
Updated yesterday

Why is this happening?

We recently released Habitify API V2, which comes with a new, more secure API Key generator.

The most common cause of a 403 error is a version mismatch. This happens if you generate a brand-new V2 API Key, but you are trying to use it with the instructions, URLs, or code built for the Legacy API.

For security reasons, the older system does not recognize the new V2 keys and will block your request, resulting in a 403 error.

How to Fix It

To resolve this issue, you just need to ensure your integration is looking at the right version of Habitify.

If you are building a new connection or updating an old one with a new V2 key, make sure you are reading the correct documentation.

If your code or the guide you are following uses endpoints starting with https://api.habitify.me/... (the old URLs), it will fail. You must update your request URLs to match the new V2 documentation.


Was this helpful?

Help us to improve the articles and give you better assistance by leaving a rating.

If you have any questions in addition, please feel free to share with us in Settings > Chat with Support Team or contact us directly at our email contact@habitify.me.

For all the interesting suggestions and ideas, don't hesitate to share with us on our feedback site: https://feedback.habitify.me.

Did this answer your question?