The Integration Settings endpoint sets the origins that Gong allows your app's iFrame to load from, for one company. Use this endpoint when your app serves each customer from an address of its own, such as https://acme.partner.com.
An app can show its own page inside Gong, in an iFrame. In the Engage email composer, users add your app's content to their emails. On the Engage account pages, users see your app's account data. To set this up, you register your app in Gong as an OAuth integration, with the URL of the page to open and a list of allowed origins. Gong blocks content in the iFrame from any origin that isn't allowed for the company. Gong also rejects messages that the page sends from any other origin. If your app sends users to an address of their own, such as a page your app opens after they sign in, register that address with this endpoint.
Learn more about creating an OAuth app for Gong.
Use them to:
Allow each customer's own address in your app's iFrame, for that customer's company only.
Replace a customer's addresses when they change.
Which endpoint to use:
To set the allowed origins for one company:
POST /v2/integration-settings
Good to know:
Origins for every company: origins that are the same for every company go in your integration's Allowed origins setting in Gong, not in this endpoint. Use this endpoint for origins that differ by company.
One company per request: Gong saves the origins for the company that gave your integration the access token you send. Send a request for each company, with that company's access token.
Scope: if you add the scope to an integration that companies already installed, a tech admin at each company must authorize the integration again before its access token includes the scope.
Sign-in pages: Gong blocks third-party pages in the iFrame, including other services' sign-in pages. Open a third-party sign-in page in a new window.
Required authorization scope for all Integration Settings endpoints: 'api:integration-settings:write'.