Report event of a custom action

Prev Next
Put
/v2/customer-engagement/action

Push engagement events into Gong and display them as events in Gong?s activity timeline, when a content is engaged by an external participant (for example, a contract was ?signed? by the prospect)

When accessed through a Bearer token authorization method, this endpoint requires the scope 'api:engagement-data:write'.

Body parameters
Expand All
object

Custom Action Event

reportingSystem
string Required

The unique identifier of the reporting system. It is the same value in all events originating from the same system.

Exampleabc123
eventTimestamp
string Required

The date and time when the event happened in the ISO-8601 format (e.g., '2021-08-01T02:30:00+05:00' or '2021-08-01T08:00:00Z', where Z stands for UTC);

Example2021-02-17T02:30:00-08:00
eventId
string

The original id of the event as designated in the reporting system.

Exampleabc123
contentId
string

The id of the content that was viewed in the reporting system.

Exampledoc_123456789
contentUrl
string

The url of the content that was viewed in the reporting system. This is the url that is was accessed by the viewer.

Examplehttps://example.com/doc_123456789
contentTitle
string

Human readable title of the content.

ExampleFeatures & Spec V.1
actionName
string

The name of the action like "Document Viewed" or "Presentation Opened".

ExampleMy Title
eventInfoUrl
string

The link to a page that presents additional information about this event.

Examplehttps://example.com/path/to/a/page
actor
object (Actor)
email
string

The email address of the person, if available.

Exampletest@test.com
name
string

The name of the person, if available.

ExampleTest User
title
string

The job title of the person, if available.

ExampleEnterprise Account Executive
context
Array of object (PartyUploadContext)

A list of links to external systems such as CRM, Telephony System, Case Management, etc.

object

An external system, such as a CRM, with the objects to link to the person.

system
string Required

The external system the objects are in. Accepted values: Salesforce, Generic.

Valid values[ "Salesforce", "HubSpot", "MicrosoftDynamic", "Generic" ]
ExampleSalesforce
objects
Array of object (ExternalCrmPartyObject)

The objects in the external system.

object

An object in an external system to link to the person, such as a CRM contact or lead.

objectType
string Required

The type of the object within the external system. Accepted values: Lead, Contact, Account, Opportunity, User. Applies to participants from outside the company.

Valid values[ "Lead", "Contact", "Account", "Opportunity", "User", "Lead,Contact" ]
ExampleContact
objectId
string Required

The ID of the object in the external system. For Salesforce, the 15-character and the 18-character ID are both accepted.

Example0013601230sV7grAAC
fields
Array of object (CrmPartyContextField)

Reserved for future use.

object

A field of an object in an external system, with its value.

name
string

The name of the field.

Examplename
value
object

The value of the field.

ExampleGong Inc.
crmContext
Array of object (CallUploadContext)

A list of references to external systems such as CRM, Telephony System, Case Management, etc.

object

An external system, such as a CRM, with the objects to link to the call or event.

system
string Required

The external system the objects are in. Accepted values: Salesforce, Generic.

Valid values[ "Salesforce", "HubSpot", "MicrosoftDynamic", "Generic" ]
ExampleSalesforce
objects
Array of object (ExternalCrmCallObject)

The objects in the external system. Don't send more than one opportunity from the same account.

object

An object in an external system to link to the call, such as a CRM account or opportunity.

objectType
string Required

The type of the object within the external system. Accepted values: Opportunity, Account, Lead, Contact, User.

Valid values[ "Opportunity", "Account", "Lead", "Contact", "User", "Opportunity,Account" ]
ExampleAccount
objectId
string Required

The ID of the object in the external system. For Salesforce, the 15-character and the 18-character ID are both accepted.

Example0013601230sV7grAAC
fields
Array of object (ContextField)

Reserved for future use.

object

A field of an object in an external system, with its value.

name
string

The name of the field.

Examplename
value
object

The value of the field.

ExampleGong Inc.
contentProperties
Array of object (GenericProperty)

A list of additional properties for the content

object

A list of additional properties for the event

name
string Required

Property name.

value
string Required

Property value. Value format should match dataType. If dataType is "number", value should be passed in JSON number format, e.g. 3.14. If dataType is "date", the value should be passed in JSON date format, e.g. 2021-02-17T02:30:00-08:00. If the dataType is "url", the value should be valid URL, e.g. "https://example.com/example?q=v"

Examplestring
dataType
string Required

Property data type.

Valid values[ "number, string, url, date" ]
Examplestring
eventProperties
Array of object (GenericProperty)

A list of additional properties for the event

object

A list of additional properties for the event

name
string Required

Property name.

value
string Required

Property value. Value format should match dataType. If dataType is "number", value should be passed in JSON number format, e.g. 3.14. If dataType is "date", the value should be passed in JSON date format, e.g. 2021-02-17T02:30:00-08:00. If the dataType is "url", the value should be valid URL, e.g. "https://example.com/example?q=v"

Examplestring
dataType
string Required

Property data type.

Valid values[ "number, string, url, date" ]
Examplestring
userAgent
string

"User-Agent" header value for browser based interaction

mobileAppId
string

The application identification string in case of interaction via mobile application (bundle identifier or package name).

agentPlatform
string

Platform on which the interaction was made

Valid values[ "Windows, Linux, MacOS, iOS, Android" ]
workspaceId
string

The ID of the workspace to add the event to. If not provided, Gong adds the event to the home workspace of the user specified by actor, if the actor is a Gong user.

Example623457276584334
nonCompanyParticipants
Array of object (Actor)
object
email
string

The email address of the person, if available.

Exampletest@test.com
name
string

The name of the person, if available.

ExampleTest User
title
string

The job title of the person, if available.

ExampleEnterprise Account Executive
context
Array of object (PartyUploadContext)

A list of links to external systems such as CRM, Telephony System, Case Management, etc.

object

An external system, such as a CRM, with the objects to link to the person.

system
string Required

The external system the objects are in. Accepted values: Salesforce, Generic.

Valid values[ "Salesforce", "HubSpot", "MicrosoftDynamic", "Generic" ]
ExampleSalesforce
objects
Array of object (ExternalCrmPartyObject)

The objects in the external system.

object

An object in an external system to link to the person, such as a CRM contact or lead.

objectType
string Required

The type of the object within the external system. Accepted values: Lead, Contact, Account, Opportunity, User. Applies to participants from outside the company.

Valid values[ "Lead", "Contact", "Account", "Opportunity", "User", "Lead,Contact" ]
ExampleContact
objectId
string Required

The ID of the object in the external system. For Salesforce, the 15-character and the 18-character ID are both accepted.

Example0013601230sV7grAAC
fields
Array of object (CrmPartyContextField)

Reserved for future use.

object

A field of an object in an external system, with its value.

name
string

The name of the field.

Examplename
value
object

The value of the field.

ExampleGong Inc.
moreInfoUrl
string
shareId
string
trackingId
string
sharingMessageBody
string
sharer
object (Sharer)
id
string

The Gong ID of the user who shared the content, if available.

Example234599484848423
email
string

The email address of the person, if available.

Exampletest@test.com
name
string

The name of the person, if available.

ExampleTest User
sharingMessageSubject
string
Responses
200

Successful response

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

Malformed request

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

Access denied

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

Event is too large to be processed

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

API request limit exceeded

Headers
Retry-After
integer (int32)
Number of seconds to wait before making a new request.
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

Failed to complete the operation due to an unexpected error

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