Create a digital interaction

Prev Next
Post
/v2/digital-interaction

Sends Gong one action that a person outside the company took in your app, such as viewing a document or completing a course step. Gong shows the event in the activity timeline of the CRM account, deal, contact or lead it's linked to. Sales teams see it there next to the customer's calls and emails.

Identify the person in one of two ways: with the person's details in person, or with a tracking ID. Send one of them, not both.

Gong links the event to the CRM with the person's details: their CRM contact or lead ID, their company's CRM account or opportunity ID, their email address, their phone number or their company's domain. Send every detail you have. If Gong can't link the event to the CRM and the request has no tracking ID, Gong drops the event. Gong also drops events by people in the company, such as Gong users, when the request has no tracking ID.

For an anonymous person, such as a website visitor whose name and email address you don't know, send an ID from your system in person.personId and the company's domain in person.company.domain.

Gong responds as soon as it accepts the event. Gong links the event to the CRM and saves it after it responds. A 200 response doesn't confirm that the event appears in Gong.

When the company's CRM is Salesforce, Gong checks each Salesforce contact, lead, account and opportunity ID in the request before it accepts the event. If an ID isn't found in Salesforce, Gong rejects the request.

Gong accepts each event ID once. If you retry a request that may have succeeded, send the same event ID. If Gong already has the event, it returns 400 and doesn't save the event again.

Required authorization scope: 'api:digital-interactions:write'.

Body parameters
Expand All
object

A digital interaction to send to Gong.

eventId
string Required

The ID of the event in your system. Gong accepts each event ID once.

timestamp
string (date-time) Required

The date and time the event happened. Use ISO-8601 format, in UTC (Z) or with a timezone offset such as -07:00.

eventType
string Required

The name of the action the person took. Gong shows it as the name of the event. Any text is accepted.

sourceSystemName
string

The name of the app the event happened in, such as your product's name. If you send events through an iPaaS, such as Zapier or Workato, send the name of the app the events come from, not the name of the iPaaS.

sessionId
string

The ID of the person's session in your app. Send the same session ID with related events, such as several pages viewed in one visit.

device
string

The type of device the person used. Accepted values: MOBILE, PC.

Valid values[ "MOBILE", "PC" ]
content
object (Content) Required

The content the person acted on, such as a document, video, web page or course.

contentId
string

The ID of the content in your system.

contentTitle
string Required

The title of the content. Gong shows it on the event.

contentLabel
Array of string

The tags of the content in your system.

string

A tag of the content.

contentUrl
string

The URL of the content.

contentAdditionalInfoUrl
string

The URL of a page with more information about the event, such as an analysis of how the person used the content.

numericContentDetails
object (NumericContentDetails)

A score or measurement for the content, such as an NPS score or the percentage of a video watched.

value
integer (int32)

The person's score or measurement.

rangeFrom
integer (int32) Required

The lowest possible value.

rangeTo
integer (int32) Required

The highest possible value.

numericType
string

The kind of value. Accepted values: PERCENTAGE, NPS, RATING, OTHER.

Valid values[ "PERCENTAGE", "NPS", "RATING", "OTHER" ]
stepContentDetails
object (StepContentDetails)

The person's progress through content that has steps, such as a course or a shipment.

value
string Required

The step the person is on.

availableSteps
Array of string Required

All the steps in the content.

string

A step in the content.

searchObjectDetails
object (SearchObjectDetails)

A company, product or category that the person searched for or compared, such as on a review site.

name
string Required

The name of the company, product or category.

objectType
string Required

The kind of item the person searched for. Accepted values: VENDOR (a company), PRODUCT, CATEGORY.

Valid values[ "VENDOR", "PRODUCT", "CATEGORY" ]
domain
string Required

The website domain of the company, product or category.

objectId
string

The ID of the company, product or category in your system.

url
string

The URL of the company, product or category in your system.

contentCustomFields
Array of object (CustomField)

More information about the content, as names and values.

object

A custom field: a name and a value.

name
string Required

The name of the custom field.

value
string Required

The value of the custom field, as text. For the type BOOLEAN, send true or false. For the type NUMBER, send a number.

dataType
string

The type of the value. Accepted values: STRING (text, the default), NUMBER, DATE (in ISO-8601 format), URL, BOOLEAN, DURATION (in seconds).

Valid values[ "STRING", "NUMBER", "DATE", "URL", "BOOLEAN", "DURATION" ]
person
object (Person)

The person who took the action.

name
string

The person's name.

email
string

The email address of the person. Gong uses it to find the person's contact or lead in the CRM.

phoneNumber
string

The phone number of the person. Gong uses it to find the person's contact or lead in the CRM.

personId
string

The ID of the person in your system. Required for an anonymous person: when you don't send the person's name, email address, phone number or CRM contact or lead ID. An anonymous person also needs the company's domain in company.domain.

personBusinessContext
object (PersonBusinessContext)

The person's contact or lead in the CRM.

objectType
string Required

The type of CRM object. Accepted values: CONTACT, LEAD.

Valid values[ "CONTACT", "LEAD" ]
objectId
string Required

The CRM ID of the contact or lead.

systemName
string

The name of the CRM, such as Salesforce. When the company's CRM is Salesforce and you send Salesforce, Gong checks that the contact or lead exists in Salesforce.

location
object (Location)

The person's location, as your system records it.

country
string

The person's country, as an ISO 3166 code. If the country has no ISO 3166 code, send its name.

state
string

The person's state, as an ISO 3166-2 code. If the state has no ISO 3166-2 code, send its name.

region
string

The person's region, as an ISO 3166-2 code. If the region has no ISO 3166-2 code, send its name.

city
string

The person's city.

company
object (Company)

The company the person works for.

companyId
string

The ID of the company in your system.

name
string

The company's name.

domain
string

The company's website domain. Gong uses it to find the company's account in the CRM. Required for an anonymous person.

companyBusinessContexts
Array of object (CompanyBusinessContext)

The company's accounts or opportunities in the CRM. Required if you don't send the company's domain.

object

An account or opportunity in the CRM.

objectType
string Required

The type of CRM object. Accepted values: ACCOUNT, OPPORTUNITY.

Valid values[ "ACCOUNT", "OPPORTUNITY" ]
objectId
string Required

The CRM ID of the account or opportunity.

systemName
string

The name of the CRM, such as Salesforce. When the company's CRM is Salesforce and you send Salesforce, Gong checks that the account or opportunity exists in Salesforce, and that no two opportunities belong to the same account.

personCustomFields
Array of object (CustomField)

More information about the person, as names and values.

object

A custom field: a name and a value.

name
string Required

The name of the custom field.

value
string Required

The value of the custom field, as text. For the type BOOLEAN, send true or false. For the type NUMBER, send a number.

dataType
string

The type of the value. Accepted values: STRING (text, the default), NUMBER, DATE (in ISO-8601 format), URL, BOOLEAN, DURATION (in seconds).

Valid values[ "STRING", "NUMBER", "DATE", "URL", "BOOLEAN", "DURATION" ]
customFields
Array of object (CustomField)

More information about the event, as names and values.

object

A custom field: a name and a value.

name
string Required

The name of the custom field.

value
string Required

The value of the custom field, as text. For the type BOOLEAN, send true or false. For the type NUMBER, send a number.

dataType
string

The type of the value. Accepted values: STRING (text, the default), NUMBER, DATE (in ISO-8601 format), URL, BOOLEAN, DURATION (in seconds).

Valid values[ "STRING", "NUMBER", "DATE", "URL", "BOOLEAN", "DURATION" ]
trackingId
string

The tracking ID of the person who took the action. Send either a tracking ID or the person's details, not both. Gong keeps an event with a tracking ID even when it can't link the event to the CRM.

Responses
200

Gong accepted the event. Gong links the event to the CRM after it responds. A 200 response doesn't confirm that the event appears in Gong.

object
requestId
string

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

Example4al018gzaztcr8nbukw
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 has both person details and a tracking ID, or neither.
  • The person has no name, email address, phone number or CRM contact or lead ID, and the request doesn't have both a person ID and a company domain.
  • The request has a company with no domain and no CRM accounts or opportunities.
  • A custom field of the type BOOLEAN has a value other than true or false.
  • A custom field of the type NUMBER has a value that isn't a number.
  • Gong already has an event with this event ID.
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

Conflict - Event was already reported in the past.

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
413
  • The event is too large for Gong to process. Make the request smaller, for example by sending fewer custom fields.
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