List data for a phone number

Prev Next
Get
/v2/data-privacy/data-for-phone-number

Returns the contacts and leads in Gong with a phone number, and the calls, email messages and calendar meetings that are linked to them. Use the response to answer a person's request to see their data, or to check what POST /v2/data-privacy/erase-data-for-phone-number deletes before you send it.

Gong finds the data in two steps. First, it finds the contacts and leads whose phone number or mobile phone number matches, and the calls made to or from the number. Then it adds the calls, email messages and calendar meetings of every email address on those contacts and leads. The response lists these email addresses in emailAddresses.

Gong matches the phone number in any format it's stored in. A number stored without a country code matches when it contains the last 9 digits of the number you send. Numbers of other people can match this way. The response lists every number that matched in matchingPhoneNumbers.

To check whether a deletion is done, continue polling this endpoint after you request the deletion. Calls that Gong is still deleting are listed with the status PURGE_REQUESTED. Calls that Gong already deleted aren't listed.

Required authorization scope: 'api:data-privacy:read'.

Query parameters
phoneNumber
stringRequired

The phone number of the person whose data to list, in international format: a plus sign (+), the country code and the number. The number must have at least 9 digits after the plus sign. Gong ignores spaces, hyphens, parentheses and every other character that isn't a digit. In the query string, write + as %2B.

Example+1(425) 555-2671
Responses
200

Successful request

Expand All
object
requestId
string

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

Example4al018gzaztcr8nbukw
emails
Array of object (EmailMessage)

The email messages in Gong that were sent to or from the email addresses in emailAddresses.

object

An email message in Gong.

from
string

The email address of the sender.

Exampletest@test.com
id
string

The Gong ID of the email message. 32 characters.

Example223mjfaaqqjuegabiyrmpctvcwwl75oz
sentTime
string

The date and time the email message was sent, in ISO-8601 format.

Example2019-01-20T00:00:00-08:00
mailbox
string

The email address of the mailbox that Gong imported the email message from.

Exampletest@test.com
messageHash
string

A hash of the email message.

Examplel3z7w2s7oircdabnkwizmycm6g2uwznc
calls
Array of object (CallReference)

The calls in Gong that include the phone number or an email address in emailAddresses, such as calls made to or from the number, and calls linked to a contact or lead with the number.

object

A call in Gong that includes the email address or phone number.

id
string

The Gong ID of the call. Up to 20 digits.

Example7782342274025937895
status
string

The status of the call in Gong. Possible values: SCHEDULED (the call hasn't taken place yet), INPROGRESS (the call is taking place), IMPORT_REQUESTED, PROCESSING_REQUESTED, COMPLETED (Gong finished processing the call), NOSHOW, CANCELLED, ABORTED, PURGE_REQUESTED (Gong will delete the call).

ExampleCOMPLETED
externalSystems
Array of object (ExternalSystem)

The Salesforce objects the call is linked to.

object

A CRM with the objects the call is linked to.

system
string

The CRM the objects belong to. The value is always Salesforce.

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

The objects in Salesforce that the call is linked to.

object

An object in Salesforce that the call is linked to.

objectType
string

The type of the Salesforce object. Possible values: Task (a task the call is logged as), Conversation (the call's own record in Salesforce).

Valid values[ "Conversation", "Task" ]
ExampleTask
externalId
string

The ID of the object in Salesforce.

Example0013601230sV7grAAC
meetings
Array of object (Meeting)

The calendar meetings in Gong that an email address in emailAddresses was invited to.

object

A calendar meeting in Gong.

id
string

The Gong ID of the meeting.

Example8059707022269524529.sb5gr1tgpt5dd799eh035rb3dk@google.com_2022-06-30T13:00:00Z
customerData
Array of object (CustomerData)

The contacts and leads in Gong whose phone number or mobile phone number matches, grouped by CRM.

object

A CRM with the contacts and leads in Gong that match the request.

system
string

The CRM the contacts and leads come from. Possible values: Salesforce, HubSpot, MicrosoftDynamic (Microsoft Dynamics 365), Generic (a CRM connected through the CRM endpoints).

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

The contacts and leads from this CRM that match the request.

object

A contact or lead in Gong that matches the request.

id
string

The Gong ID of the lead or contact. Up to 20 digits.

Example7782342274025937895
objectType
string

The type of the CRM object. Possible values: Contact, Lead.

Valid values[ "Lead", "Contact" ]
ExampleContact
externalId
string

The CRM ID of the contact or lead.

Example0013601230sV7grAAC
mirrorId
string

The ID of the contact or lead in Gong's copy of your CRM data.

Example"{\"integrationId\":\"262834820328732\",\"crmObjectType\":\"CONTACT\",\"crmId\":\"0031Q00002DFhi4QAD\"}"
fields
Array of object (ContextField)

The fields of the contact or lead. The list holds one field, fullName, with the person's full name.

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.
suppliedPhoneNumber
string

The phone number sent in the request.

matchingPhoneNumbers
Array of string

The phone numbers in Gong that match the number in the request, written as they're stored in Gong. A number stored without a country code matches when it contains the last 9 digits of the number in the request.

Unique itemstrue
string

A phone number that matches the number in the request.

emailAddresses
Array of string

The email addresses of the contacts and leads with the phone number. The response also lists the calls, email messages and calendar meetings of these email addresses.

Unique itemstrue
string

An email address of a contact or lead with the phone number.

400
  • A required parameter is missing. The error message names the parameter.
  • The phone number doesn't start with a plus sign (+). In the query string, write + as %2B.
  • The phone number has fewer than 9 digits after the plus sign, or isn't a valid phone number.
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