Delete data for a phone number

Prev Next
Post
/v2/data-privacy/erase-data-for-phone-number

Permanently deletes from Gong the data about a person outside the company, found by their phone number, so that you can complete the person's request to erase their data. Gong deletes:

  • The contacts and leads with the phone number.
  • The calls and text messages with the number.
  • The calls, email messages and calendar meetings of every email address on those contacts and leads.

Gong deletes each call for everyone who took part in it.

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. To see which numbers and email addresses match, send the phone number to GET /v2/data-privacy/data-for-phone-number first.

Gong doesn't delete the data in your CRM or email system, and imports it again from them. Delete the data in those systems first.

Gong deletes the data asynchronously. The response returns when Gong accepts the request, and the deletion can take several hours. To check that the deletion is done, send the same phone number to GET /v2/data-privacy/data-for-phone-number. Continue polling until the response no longer lists the calls, email messages and calendar meetings.

To prevent large deletions by mistake, Gong counts the matching data before it deletes anything. If the phone number matches more than 1,500 email messages, 600 calls, 150 completed calls, 25 contacts, 50 leads or 3,500 calendar meetings, Gong deletes nothing and returns 400. Sending the same request again returns the same error. To delete the data, contact Gong Support. To check the numbers before you delete, list the data with GET /v2/data-privacy/data-for-phone-number.

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

Query parameters
phoneNumber
stringRequired

The phone number of the person whose data to delete, 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

Success

object
requestId
string

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

Example4al018gzaztcr8nbukw
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.
  • A contact or lead with the phone number has the email address of a Gong user, or an email address in one of the company's email domains.
  • The request matches more data than the deletion limits allow, and Gong deleted nothing. To delete the data, contact Gong Support.
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