> 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/dexcom-redirect-url-and-region.md).

# How do I set the Dexcom redirect URL and region?

For a custom-subdomain Dexcom setup, the **redirect URL must point at the subdomain whose CNAME points to our load balancer**, not at your apex domain. If it points at the apex, the auth callback never reaches us.

Update the redirect URL in both places so they match exactly:

{% stepper %}
{% step %}
Your Terra dashboard, under [Connections > Dexcom](https://github.com/tryterra/api-faqs/blob/main/dashboard/connections/README.md).
{% endstep %}

{% step %}
Dexcom's developer portal.
{% endstep %}
{% endstepper %}

Confirm the region too: users outside the US must use the EU server variant (`DEXCOM_EU`) with credentials enabled by Dexcom for the EU API host. See the [Dexcom integration docs](https://docs.tryterra.co/health-and-fitness-api/dexcom) for the full setup.
