List CRM objects

Prev Next
Get
/v2/crm/entities

Returns the CRM objects of one type with the CRM IDs you send, as Gong stored them. Use it while you build the integration, to check that Gong processes your uploads correctly.

Send up to 100 CRM IDs in the request body, as a JSON array, with the header Content-Type: application/json. Use an HTTP client that sends a body with a GET request. If you send more than 100 IDs, the response includes 100 of them, and Gong ignores the rest.

The response maps each CRM ID to the object's fields and values. The value is null when Gong doesn't have the object. An uploaded object appears only after Gong processes it, and a contact appears only after Gong associates it with a call or email.

Required authorization scope: 'api:crm:get-objects'.

Query parameters
integrationId
integer (int64) Required

The Gong ID of the integration. Returned when you create the integration.

objectType
stringRequired

The CRM object type (case-sensitive). Accepted values: ACCOUNT, CONTACT, DEAL, LEAD.

Valid values[ "ACCOUNT", "CONTACT", "DEAL", "LEAD" ]
objectsCrmIds
array of stringRequired

The CRM IDs of the objects to return, up to 100. Send them in the request body as a JSON array, not as a query parameter.

Unique itemstrue
Responses
200

Successfully retrieved requested objects data

Expand All
object
requestId
string

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

Example4al018gzaztcr8nbukw
crmObjectsMap
object

The requested objects, keyed by CRM ID. Each value holds the object's fields and their values, or is null if Gong doesn't have the object.

property*
object additionalProperties

An object's fields and their values, keyed by field name.

property*
object additionalProperties

The value of a field.

400
  • The request body isn't a JSON array of CRM IDs.
  • A parameter has the wrong type or format. The error message names the parameter.
  • The company has no CRM integration registered through the API.
  • integrationId isn't the ID of the company's integration. Read the ID as a 64-bit integer, so it isn't rounded.
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
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