> 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/provider-callback-url-registration.md).

# Why is my Huawei redirect\_uri not registered?

Provider OAuth errors like `redirect_uri not registered` or `Unauthorized` after the user authorises mean the **Terra callback URL isn't registered, or doesn't match**, in the provider's developer portal.

{% stepper %}
{% step %}
Register Terra's provider-specific OAuth callback URL in the provider portal:

* **Huawei:** under your Huawei OAuth 2.0 client credentials, not just API-key restrictions.
* **WHOOP:** the `access.tryterra.co` WHOOP OAuth v3 callback.
  {% endstep %}

{% step %}
Set the **same URL** under [Connections settings](https://github.com/tryterra/api-faqs/blob/main/dashboard/connections/README.md) in the Terra dashboard so both match exactly.
{% endstep %}
{% endstepper %}

The flow then completes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tryterra.co/faq/help-topics/connecting/setting-up-provider-credentials-bring-your-own-keys/provider-callback-url-registration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
