Visit the Add New Integration page and complete the form.For the Client ID and Client Secret, you’ll need to register your OAuth application on the developer portal of the external API you’re integrating with.
To register your OAuth app, find your API within Nango’s documentation and go to the Getting Started section. For example, check out Notion.
When registering, the API provider will prompt you for the Callback URL. Use the one displayed at the bottom of Nango’s integration page. Remember to also register the required scopes both with the API provider and within Nango’s integration page.
To kick-start, install @nangohq/frontend. Then, utilize the code snippet provided on the Add New Connection page (from step 3) to initiate OAuth flows from your frontend. Further details can be found in the Frontend SDK docs.Here, the <CONNECTION-ID> signifies a unique user connection to the integration within Nango. We suggest using a distinctive user ID or a similar identifier.
For backend operations, either our Node SDK or REST API can be employed to consistently fetch updated access tokens. These tokens enable you to query the external API.
<INTEGRATION-ID> represents the name of your integration. Find it on the Integrations tab in the Dashboard, e.g., slack.
<CONNECTION-ID> corresponds to the Connection ID designated in step 4.
Transition to the Project Settings tab to obtain the secret key necessary for fetching the credentials: