Update an integration's allowed origins

Prev Next
Post
/v2/integration-settings

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'.

Body parameters
Expand All
object

The origins to allow for the company.

integrationTypeSettings
Array of object (IntegrationTypeSettings) Required

The origins to allow, each with the integration type it applies to. Send one item for each origin, and at least one item.

object

An origin to allow, and the integration type it applies to.

integrationType
string Required

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).

Valid values[ "EMAIL_COMPOSER", "ACCOUNT_PAGES", "DIALER" ]
allowedOrigin
string Required

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.

Responses
200

Gong saved the origins. The response holds only requestId. It doesn't include integrationId.

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
integrationId
integer (int64)

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.

Example5517027188234205706
400
  • 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.

object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
401
  • 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.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
409
  • This endpoint doesn't return 409.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
429
  • The company sent more requests than its rate limit allows. Wait the number of seconds in Retry-After, then send the request again.
Headers
Retry-After
integer (int32)
The number of seconds to wait before you send the request again.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
500
  • Gong couldn't complete the request because of an unexpected error. Try again. If the error continues, contact Gong Support and give them the requestId from the response.
object
requestId
string

The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string