> 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/faq/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 Terra's actual redirect host.

Terra has two auth hosts: `api.tryterra.co` and `access.tryterra.co`. If your `dev_id` uses `access.tryterra.co`:

{% stepper %}
{% step %}
Set the Strava **Authorization Callback Domain** to `access.tryterra.co`.
{% endstep %}

{% step %}
Save.
{% endstep %}

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