List CRM object fields

Prev Next
Get
/v2/crm/entity-schema

Returns the fields of one object type: the standard fields Gong creates and the fields you added with POST /v2/crm/entity-schema, sorted by uniqueName. For a picklist field, orderedValueList lists its values.

Required authorization scope: 'api:crm:schema'.

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" ]
Responses
200

Successfully retrieved crm schema fields

Expand All
object
requestId
string

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

Example4al018gzaztcr8nbukw
objectTypeToSelectedFields
object

The fields of the requested object type, keyed by object type. In this response, lastModified is null and isDeleted is false.

property*
Array of object (GenericSchemaFieldRequest) additionalProperties

The fields of one object type.

object

A field of a CRM object type.

uniqueName
string

The name of the field, unique within the object type. Uploaded objects use it as the field's name.

Exampleaccountowner
label
string

The name Gong shows for the field.

ExampleAccount Owner
type
string

The type of the field (case-sensitive): DATE, DATETIME, NUMBER, PERCENT, CURRENCY, ID, URL, STRING, BOOLEAN, PHONENUMBER, EMAILADDRESS, PICKLIST, REFERENCE or STRINGARRAY. The description of POST /v2/crm/entity-schema gives the values to upload for each type.

Valid values[ "DATE", "DATETIME", "NUMBER", "PERCENT", "CURRENCY", "ID", "URL", "STRING", "BOOLEAN", "PHONENUMBER", "EMAILADDRESS", "PICKLIST", "REFERENCE", "STRINGARRAY" ]
ExampleREFERENCE
lastModified
string

The date and time the schema was last modified, in ISO-8601 format.

Example2020-12-17T13:45:01Z
isDeleted
boolean

Indicates whether the field is deleted from the schema.

Examplefalse
referenceTo
string

The type of object a REFERENCE field points to: ACCOUNT, CONTACT, DEAL, LEAD or USER (a business user).

ExampleUSER
orderedValueList
Array of string

The values of a PICKLIST field, in the order Gong shows them.

Example[ "Analyst", "Competitor", "Customer", "Integrator", "Investor", "Partner", "Other" ]
string

A value of the picklist.

Example["Analyst","Competitor","Customer","Integrator","Investor","Partner","Other"]
400
  • 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