Retrieve the status of a CRM request

Prev Next
Get
/v2/crm/request-status

Returns the status of an asynchronous request: an upload with POST /v2/crm/entities, or a deletion with DELETE /v2/crm/integrations. Continue polling until status is DONE or FAILED.

FAILED means some objects, or the whole file, couldn't be processed. The other objects were processed: totalSuccessCount and totalErrorCount say how many of each. errors lists up to 20 errors, each with its line in the file.

errors lists at most 20, so after you fix them, upload the whole file again with a new clientRequestId. An error on line 0 is about the whole file. Repeat until status is DONE.

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

Query parameters
integrationId
integer (int64) Required

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

clientRequestId
stringRequired

The clientRequestId you sent in the upload or delete request.

Responses
200

Operation successful

Expand All
object
requestId
string

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

Example4al018gzaztcr8nbukw
status
string

The status of the request. Possible values: PENDING (Gong hasn't started processing it), IN_PROGRESS (Gong is processing it), DONE (Gong read every object in the file), FAILED (some objects or the whole file couldn't be processed; see errors).

Valid values[ "PENDING", "IN_PROGRESS", "DONE", "FAILED" ]
ExampleFAILED
errors
Array of object (LineErrorResponse)

The errors in the file, up to 20. Returned when status is FAILED.

object

An error in the uploaded file.

line
integer (int32)

The line in the file where the error is. Line 0 means an error in the whole file.

Example49
description
string

What's wrong with the line, such as a required field that's missing.

ExampleMandatory field [objectId] is missing or empty
totalErrorCount
integer (int32)

The number of objects that couldn't be processed.

Example3
totalSuccessCount
integer (int32)

The number of objects processed successfully.

Example97
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