> For the complete documentation index, see [llms.txt](https://docs.tryterra.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tryterra.co/help-center/help-topics/connecting/setting-up-provider-credentials-bring-your-own-keys/strava-redirect-uri-invalid.md).

# Why does Strava return redirect\_uri invalid?

A Strava redirect\_uri invalid error means the Authorization Callback Domain in your Strava app doesn't match the domain Terra redirects through.

A Strava `redirect_uri invalid` error means the **Authorization Callback Domain** in your Strava app doesn't match the domain Terra redirects through.

{% stepper %}
{% step %}
Find the callback subdomain set up for Strava, shown under **Connections > Strava** in the Terra dashboard if your account has the custom domain option. Check it is active.
{% endstep %}

{% step %}
On Strava's API settings page, set the **Authorization Callback Domain** to exactly that subdomain, with no `https://` and no path. Save.
{% endstep %}

{% step %}
Retry the [connect flow](https://docs.tryterra.co/health-and-fitness-api/user-authentication/authentication-flow).
{% endstep %}
{% endstepper %}

If you use one Strava app across several Terra environments, use the same callback subdomain in each.
