Sets the origins that Gong allows your integration's iFrame to load from, for one company and one or more integration types. Gong allows these origins in addition to the Allowed origins in your integration's settings.
Send the request with an access token that the company gave your integration through OAuth. Gong saves the origins for that company and your integration only.
For each integration type in the request, the origins you send replace the origins saved before for that type. Integration types that you leave out keep their saved origins. To allow several origins for one integration type, send one item for each origin, with the same integration type in integrationType.
Before you save origins for an integration type, Gong allows the origin of your iFrame URL for that type. After you save origins, Gong allows only the origins you saved and your integration's Allowed origins. If the origin of your iFrame URL isn't in your Allowed origins, include that origin in the request.
Gong checks every origin before it saves any of them. If one origin isn't valid, Gong saves none of them.
Required authorization scope: 'api:integration-settings:write'.
The origins to allow for the company.
The origins to allow, each with the integration type it applies to. Send one item for each origin, and at least one item.
An origin to allow, and the integration type it applies to.
The integration type that the origin applies to: the place in Gong where your app's iFrame opens. Accepted values: EMAIL_COMPOSER (the Engage email composer), ACCOUNT_PAGES (the Engage account pages), DIALER (the Gong dialer).
The origin to allow for the integration type. Its host must end with one of the domains in your integration's Domains setting. Gong compares the origin exactly with the origin of the messages your iFrame sends. Use the form https:// followed by the host, with no path and no trailing slash.
Gong saved the origins. The response holds only requestId. It doesn't include integrationId.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
The Gong ID of the integration. Read it as a 64-bit integer (long or BigInt) or as a string. Tools that read it as a regular number, such as JavaScript, round it, and requests with the rounded ID fail.
- The request body isn't valid JSON.
- A required field is missing, or a value has the wrong type or format. The error message names the field.
- The request doesn't include any origins.
- The request wasn't sent with an access token from an OAuth integration.
- An origin doesn't start with
https://, or isn't a valid URL. - An origin's host doesn't end with one of the domains in your integration's Domains setting.
- Your integration has no domains in its Domains setting.
For the last three conditions, the error message is only "Bad Request". It doesn't say which origin failed.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The API key or access token is missing or isn't valid.
- The integration uses OAuth, and its token doesn't have the scope this endpoint requires. The error message names the scope.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- This endpoint doesn't return 409.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The company sent more requests than its rate limit allows. Wait the number of seconds in
Retry-After, then send the request again.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- Gong couldn't complete the request because of an unexpected error. Try again. If the error continues, contact Gong Support and give them the
requestIdfrom the response.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.