<@U04S8PLJWMT> what is the redirect uri when we cr...
# ask-ai
k
@kapa.ai what is the redirect uri when we create connectors using oauth2 method?
k
When creating connectors using the OAuth2 method in Airbyte, the redirect URI is a value that Airbyte provides and manages. This URI is used for OAuth callbacks and must be registered with the third-party platform when you set up your OAuth application. The exact value of the redirect URI depends on your Airbyte deployment (Cloud or Self-Managed), and Airbyte’s user interface will display the correct redirect URI for you to use during connector setup. It is important to ensure that the redirect URI you register with the third-party platform matches exactly the one provided by Airbyte, otherwise OAuth authentication will fail due to a redirect URI mismatch. The redirect happens in your web browser, not on the Airbyte server, and Airbyte handles this value internally for each deployment type. Always copy the redirect URI from the Airbyte UI when configuring your OAuth app on the third-party platform [Using OAuth to Connect](https://docs.airbyte.com/platform/using-airbyte/oauth). If you need to reference this value in a declarative OAuth connector specification, you can use the template variable
{{ redirect_uri_value }}
which Airbyte will automatically populate with the correct redirect URI for your deployment [Available Template Variables](https://docs.airbyte.com/platform/connector-development/config-based/advanced-topics/oauth#available-template-variables).