{ "openapi": "3.0.1", "info": { "title": "Gong API", "description": "
\nThe Gong API allows you to:\n
\nCheck here what's your base URL for all API calls.\n
\n\nThere are two ways to retrieve credentials to the Gong Public API:\n
\n\nIn the Gong API Page (you\nmust be a technical administrator in Gong), click \"Create\" to receive an Access Key\n and an Access Key Secret.
\n
\nUse the Basic Authorization HTTP header (as per RFC)\nto access the Public API as shown below:
\nAuthorization: Basic <token>
\n
\nTo create the basic token, combine the Access Key and the Access Key Secret with \ncolon (:) and then encode in Base64 as following:
\nBase64(<accessKey> : <accessKeySecret>)
\n
\nTo obtain the Bearer token, follow the steps described in the Gong OAuth Guide.\n
\nAfter obtaining the token, use the Bearer Authorization HTTP header\n(as per RFC)\nto access the Public API as shown below:
\nAuthorization: Bearer <token>
\n
\nBy default Gong limits your company's access to the service to 3 API calls per second, and 10,000 API calls per day.\n
\n\nWhen the rate of API calls exceeds these limits an HTTP status code 429 is returned and a Retry-After header indicates\n how many seconds to wait before making a new request.\n
\nIf required, contact help.gong.io to change these limits.\n
\n\n\nSome API calls that return a list are limited in the amount of records they may return, so multiple API calls may be\n required to bring all records. Such an API call also returns a records field, which contains the number of records\n in the current page, the current page number and the total number of records.\n
\n\nIn cases where the total number of records exceeds the number of records thus far retrieved, the records field will also\n contain a cursor field which can be used to access the next page of records. To retrieve the next page, repeat the API call with\n the cursor value as supplied by the previous API call. All other request inputs should remain the same.\n
\n\nWhen coding a system to accept Gong data, take into account that Gong may, without prior warning, add fields to the JSON output.\n It is recommended to future proof your code so that it disregards all JSON fields you don't actually use.\n\n
", "version": "V2" }, "servers": [ { "url": "https://127.0.0.1:8443", "description": "Generated server url" } ], "security": [ { "BasicAuth": [] } ], "tags": [ { "name": "Calls", "description": "If you are using the deprecated endpoints, download the PDF file.
This API enables integration with CRMs that are not natively integrated with Gong, so that Gong can provide you with its full capabilities based on your CRM data. This includes:
By uploading your CRM data to Gong, your Gong users will be able to see their CRM deals in the Gong Deals page, view deal boards to follow up on deal progress, get warnings for deals that are at risk, and see whether their team will reach its quota. The CRM data is also displayed in conversations and calls, so that your Gong users can see account and contact data such as the name and job title of the contact in the call. Account data is displayed in the Accounts page, together with the history of all communication and contact with the company.
Note: Gong provides native integrations with Salesforce, HubSpot and Microsoft Dynamics 365.
The payload is either a JSON object or, for API calls that upload lists of objects, line delimited JSON (see: JSON streaming). JSON objects should be UTF-8 encoded.
Dates and timestamps in JSON objects should be in ISO-8601 format without milliseconds (e.g. '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC).
To see your CRM data in Gong, upload the following entities:
This diagram shows how to set up your system in order to upload CRM data to Gong. This is relevant for each scenario of uploading data, initial, incremental and uploading historical data.
Register your integration to get an integrationId used to identify your company's integration with Gong. This is a one time action that does not need to be repeated unless you delete your integration.
Use PUT v2/crm/integrations
to register your integration. The integration Id is returned in the response. Include the integration Id each time you upload your CRM data.
Each CRM entity has a set of standard fields. In addition, you may want to upload additional fields.
Use the POST /v2/crm/entity-schema
to adjust the schema according to your needs. Once you have uploaded your schema to Gong, you can upload your entities with the additional fields.
This section explains how you can use the CRM API to upload your data to Gong:
Create a database dump of the data you want to upload to Gong based on your CRM schema and data. When uploading your data for the first time you should include all of the CRM records that should appear in Gong.
Send regular incremental data updates to Gong. You can update your data as often as you like, we recommend updating between every 1-5 minutes.
You should only send new records or records that have changed since the previous upload of data. New records are added to Gong and existing records are updated or deleted, whichever is relevant. Entities are identified by the objectId. Ensure that this ID remains the same each time it is updated.
When updating data, the modificationDate parameter is mandatory. This enables us to maintain accurate historical data. If your CRM does not store the modification date, send the date the API call is made.
Gong incorporates historical change data in different areas of Gong in order to provide a more accurate picture of the status of different entities at that time. For example, showing the correct stage of a deal at the time a call was made.
If your CRM stores record history, you are encouraged to load historical change data as part of the integration. You can do this at any time, but we recommend doing this after the initial upload as follows:
POST /v2/crm/entities?objectType=ACCOUNT|CONTACT|DEAL|LEAD
endpoint.This diagram shows the connection between the different objects in the CRM API:
The following relationship between entities must exist:
It is possible that your CRM entity model won't match the Gong CRM entity model. Your CRM may store your data in different entities, or you may not have an entity that represents one of the Gong CRM entities.
In order to upload your CRM data and associate it with calls and conversations, you need to identify the objects in your CRM which match the Gong CRM entities.
The account is a mandatory entity which must be uploaded in order to integrate Gong with your CRM. To upload account data, identify your CRM entities that contain data about your customers or companies that you do business with. These customers are not actual people within the org, rather they represent the org itself.
To upload contact details, identify your CRM entities that hold data about employees in the company that your reps are in touch with. A contact represents a person where communication has advanced beyond the prospect stage. Your reps will have multiple conversations and interactions with the contact.
The deal represents the selling process to the customer (account).
The lead is a prospect or potential contact, who is not yet associated with an account. If your CRM has an entity which represents people who you contact in the very early stages, and who is later converted to another entity which represents the people you are doing business with (the contact), upload this data as a lead entity.
In addition to the time it takes for data to upload to Gong, the data is first uploaded as raw data and is not automatically available in Gong.
Digital interactions (DIs) are events people make when interacting with (mostly) digital content. It can be described as an action someone did on an object. Anything from viewing a document or a video, to registering/completing a course or someone visiting your website.
The below proposed Digital Interactions API allows mainly tech-partners (and also customers) to capture and track user interactions with various types of digital content. It provides a structured schema for recording a person’s identity, action, content details, and additional contextual information. The API enables seamless integration between tech-partner systems and the Gong platform, providing valuable insights into buyer-seller interactions that sometimes are hidden from a seller’s line-of-sight.
For simplicity & clarity, the API scheme is designed according to a real-world scenario, including the following terminology:For simplicity & clarity, the API scheme is designed according to a real-world scenario, including the following terminology:
Configure your integration settings for displaying your company data in iFrames. For example, use this API to configure dynamic links as the iFrame source. This endpoint includes validation mechanisms to ensure the integration is secure.
Mandatory fields are marked with a *.
" }, { "name": "Engagement (Legacy – See “Digital Interactions”)", "description": "Returns the CRM integration you set up using the PUT /v2/crm/integrations
endpoint. You can only have one integration at a time.
When accessed using a bearer token, this endpoint requires the 'api:crm:integrations:read' scope.
", "operationId": "listGenericCrmIntegration", "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ListGenericCrmIntegrationsResponse" } } } }, "400": { "description": "Malformed request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Access denied", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "500": { "description": "Failed to complete the operation due to an unexpected error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "put": { "tags": [ "CRM" ], "summary": "Register a Generic CRM integration (/v2/crm/integrations)", "description": "Creates your CRM integration with Gong. Returns an integrationId, which should be used in requests to the CRM API to enable correct association of CRM data.
Multiple CRM integrations are not supported. To create a new integration, delete the old one first (DELETE /v2/crm/integrations
).
This includes if you have integrated with Gong using one of the native CRM integrations such as HubSpot or Salesforce.
When accessed using a bearer token, this endpoint requires the 'api:crm:integration:register' scope.
", "operationId": "registerGenericCrmIntegration", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenericCrmRegistrationRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterGenericCrmResponse" } } } }, "400": { "description": "Malformed request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "401": { "description": "Access denied", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "409": { "description": "Conflict - An active integration already exists.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "500": { "description": "Failed to complete the operation due to an unexpected error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "delete": { "tags": [ "CRM" ], "summary": "Delete a Generic CRM integration (/v2/crm/integrations)", "description": "Asynchronously deletes a CRM integration and all its associated CRM objects (Accounts, Contacts, Deals, Leads, and Users).
This endpoint gets the clientRequestId generated by you as the request identifier. Use this to check the status of the delete request by calling the /request-status
endpoint,with the clientRequestId.
A status of DONE indicates that the integration and all its associated crm objects have been successfully deleted. This may take up to 24 hours to be deleted.
DELETE https://api.gong.io/v2/crm/integrations?clientRequestId=1234&integrationId=6286478263646
",
"operationId": "deleteGenericCrmIntegration",
"parameters": [
{
"name": "integrationId",
"in": "query",
"description": "The ID of the integration to delete",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "clientRequestId",
"in": "query",
"description": "A unique identifier generated and sent by you to allow troubleshooting. Valid characters are letters, numbers, dashes and underscores.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"201": {
"description": "Successfully registered the delete integration request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AsyncProcessingResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "Client request id has already been used",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/calls/users-access": {
"put": {
"tags": [
"Permissions"
],
"summary": "Give individual users access to calls (/v2/calls/users-access)",
"description": "Give individual users access to calls.\n\nIf a user already has access (perhaps the call was shared with them, or they have access through their permission profiles) the request will have no effect.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:call-user-access:write'.",
"operationId": "addUsersAccessToCalls",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CallsUsersAccessAddDto"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BaseResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
},
"post": {
"tags": [
"Permissions"
],
"summary": "Retrieve users that have specific individual access to calls (/v2/calls/users-access)",
"description": "Returns a list of users who have received individual access to calls through the API.\n\nThis endpoint doesn't cover user that have access for other reasons (such as sharing recipients, or access through permission profiles).\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:call-user-access:read'.",
"operationId": "getUsersAccessToCalls",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FilterRequestCallsAccessGetDto"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CallsAccessDetailsResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
},
"delete": {
"tags": [
"Permissions"
],
"summary": "Remove specific individual users access from calls (/v2/calls/users-access)",
"description": "Remove individual user access from calls. The request can only remove access previously given by the /v2/calls/users-access API.\n\nIf a given user does not have access to the call, they will be unaffected.\n\nIf a given user does have access to the call, but not through the pubic API (for example if the call was shared with the user), the user's access will remain unchanged.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:call-user-access:write'.",
"operationId": "deleteUsersAccessToCalls",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CallsUsersAccessDeleteDto"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BaseResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/users/extensive": {
"post": {
"tags": [
"Users"
],
"summary": "List users by filter (/v2/users/extensive)",
"description": "List multiple Users.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:users:read'.",
"operationId": "listMultipleUsers",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicApiBaseRequestV2MultipleUsersRequestWithCreationDates"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersMetadata"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "No calls found for the specified period",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/stats/interaction": {
"post": {
"tags": [
"Stats"
],
"summary": "Retrieve interaction stats for applicable users by date (/v2/stats/interaction)",
"description": "Returns interaction stats for users based on calls that have Whisper turned on.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:stats:interaction'.",
"operationId": "listInteractionStats",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicApiBaseRequestV2MultipleUsersWithDates"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CompanyUsersIntercationStatsResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "No stats found for the specified period",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/stats/activity/scorecards": {
"post": {
"tags": [
"Stats"
],
"summary": "Retrieve answered scorecards for applicable reviewed users or scorecards for a date range (/v2/stats/activity/scorecards)",
"description": "Retrieve all the answers for the scorecards that were reviewed during a specified date range, for calls that took place during a specified date range, for specific scorecards or for specific reviewed users.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:stats:scorecards'.",
"operationId": "listAnsweredScorecards",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicApiBaseRequestV2AnsweredScorecardsFilter"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AnsweredScorecards"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "Answered scorecards not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/stats/activity/day-by-day": {
"post": {
"tags": [
"Stats"
],
"summary": "Retrieve daily activity for applicable users for a date range (/v2/stats/activity/day-by-day)",
"description": "Retrieve the daily activity of multiple users within the Gong system for a range of dates. This endpoint returns records including statistics about each user's activity, on the daily level. Records are returned only for users with activity in the range.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:stats:user-actions:detailed'.",
"operationId": "listMultipleUsersDayByDayActivity",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicApiBaseRequestV2MultipleUsersWithDates"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersDayByDayActivity"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "User not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/stats/activity/aggregate": {
"post": {
"tags": [
"Stats"
],
"summary": "Retrieve aggregated activity for defined users by date (/v2/stats/activity/aggregate)",
"description": "Lists the activity of multiple users within the Gong system during a defined period. Given the period, this endpoint returns multiple records, one for each user, with an applicable activity during the period. Each record includes statistics about the user's activity.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:stats:user-actions'.",
"operationId": "listMultipleUsersAggregateActivity",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicApiBaseRequestV2MultipleUsersWithDates"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CompanyUsersAggregateActivityResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "User not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/stats/activity/aggregate-by-period": {
"post": {
"tags": [
"Stats"
],
"summary": "Retrieve aggregated activity for defined users by a date range with grouping in time periods (/v2/stats/activity/aggregate-by-period)",
"description": "Lists the aggregated activity of multiple users within the Gong system for each time period within the defined date range. This endpoint returns multiple records, one for each user. For each user there are items for every time period in the date range, including statistics about the user's activity. Records are returned only for users with activity in the range.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:stats:user-actions'.",
"operationId": "listMultipleUsersAggregateByPeriod",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RequestWithTimePeriod"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersAggregateByPeriodActivity"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "User not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/meetings": {
"post": {
"tags": [
"Meetings (in Beta Phase)"
],
"summary": "Create a New Gong Meeting (/v2/meetings)",
"description": "When accessed through a Bearer token authorization method, this endpoint requires the scope 'api:meetings:user:create'.",
"operationId": "addMeeting",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewMeetingRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewMeetingResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "This API endpoint is in Limited release - contact your CSM for more information.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "No Gong user found corresponding to the provided organizer email",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "Conflict, e.g. consent page is not enabled in your company",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/meetings/integration/status": {
"post": {
"tags": [
"Meetings (in Beta Phase)"
],
"summary": "Validate Gong meeting Integration (/v2/meetings/integration/status)",
"description": "When accessed through a Bearer token authorization method, this endpoint requires the scope 'api:meetings:integration:status'.",
"operationId": "integrationStatus",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IntegrationStatusRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IntegrationStatusResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "This API endpoint is in Limited release - contact your CSM for more information.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/integration-settings": {
"post": {
"tags": [
"Integration Settings"
],
"summary": "Integration Settings (/v2/integration-settings)",
"description": "When accessed through a Bearer token authorization method, this endpoint requires the scope 'api:integration-settings:write'.",
"operationId": "integrationSettings",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IntegrationSettingsRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterGenericCrmResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "Conflict - Event was already reported in the past.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/flows/prospects": {
"post": {
"tags": [
"Engage Flows"
],
"summary": "List assigned flows for the given prospects (/v2/flows/prospects)",
"description": "Get the Gong Engage flows assigned to the given prospects.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:flows:read'.",
"operationId": "getFlowsForProspects",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProspectsAssignedFlowsRequestV2"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProspectsFlowsResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/flows/prospects/assign": {
"post": {
"tags": [
"Engage Flows"
],
"summary": "Assign prospects (contacts or leads) to an Engage flow (/v2/flows/prospects/assign)",
"description": "Use this endpoint to assign a number of prospects to a flow. Prospects can be contacts or leads in your CRM.\n\nGenerate a list of comma separated CRM Ids of the prospects you want to add to a flow. The flowInstanceOwnerEmail parameter is the email address of the Gong user who set up the flow instance and owns the flow to-dos.\n\nYou can assign up to 200 prospects to a flow in a single request.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:flows:write'.",
"operationId": "assignProspects",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssignFlowRequestV2"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssignFlowResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/digital-interaction": {
"post": {
"tags": [
"Digital Interactions"
],
"summary": "Post a Digital Interaction (/v2/digital-interaction)",
"description": "When accessed through a Bearer token authorization method, this endpoint requires the scope 'api:digital-interactions:write'.",
"operationId": "addDigitalInteraction",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DigitalInteractionRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EventAcceptedResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"409": {
"description": "Conflict - Event was already reported in the past.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/data-privacy/erase-data-for-phone-number": {
"post": {
"tags": [
"Data Privacy"
],
"summary": "Delete the phone number, and all associated elements (/v2/data-privacy/erase-data-for-phone-number)",
"description": "Given a phone number, this endpoint deletes from the Gong system any leads or contacts with a matching phone number or mobile phone number. Email messages sent to or from these leads/contacts are deleted. Calls where the leads/contacts appear are deleted. The deletion is not immediate, and may take several hours to complete.\n\nThis endpoint contains a data integrity protection mechanism to prevent the deletion of an abnormal number of objects. If the deletion fails please contact support at help@gong.io\n\nDelete the data from your CRM and email system before performing this operation so that private data is not re-imported into Gong.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:data-privacy:delete'.",
"operationId": "purgePhoneNumber",
"parameters": [
{
"name": "phoneNumber",
"in": "query",
"description": "The phone number.\n\nThis number must start with a + (plus) sign followed by the country code, area code, and local phone number. All other non-digits are ignored.\n\nThe following are examples of permitted phone numbers: +1 425 555 2671, +1-425-555-2671, +1 425 5552671, +14255552671, +1 425 555 26 71, +1(425) 555-2671, etc.\n\nNote: This parameter should be URL-encoded.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string"
},
"example": "+1(425) 555-2671"
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BaseResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/data-privacy/erase-data-for-email-address": {
"post": {
"tags": [
"Data Privacy"
],
"summary": "Delete the email address, and all associated elements (/v2/data-privacy/erase-data-for-email-address)",
"description": "Given an email address, this endpoint deletes from the Gong system any calls or email messages that reference this address. Email messages sent to or from the address are deleted. Calls where the email address appears (as a lead, contact, attendee or speaker) are deleted. Leads or Contacts with the email address are deleted. The deletion is not immediate, and may take several hours to complete.\n\nThis endpoint contains a data integrity protection mechanism to prevent the deletion of an abnormal number of objects. If the deletion fails please contact support at help@gong.io\n\nDelete the data from your CRM and email system before performing this operation so that private data is not re-imported into Gong.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:data-privacy:delete'.",
"operationId": "purgeEmailAddress",
"parameters": [
{
"name": "emailAddress",
"in": "query",
"description": "The email address.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BaseResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/crm/entity-schema": {
"get": {
"tags": [
"CRM"
],
"summary": "List Schema Fields (/v2/crm/entity-schema)",
"description": "Retrieves a list of the object schema fields.
When accessed using a bearer token, this endpoint requires the scope 'api:crm:schema'.
GET https://api.gong.io/v2/crm/entity-schema?integrationId=6286478263646&objectType=ACCOUNT
{ \"requestId\": \"afjkzqkqglog7ueki5\", \"objectTypeToSelectedFields\": { \"ACCOUNT\": [ { \"name\": \"accountTypePicklist\", \"label\": \"Account Type\", \"type\": \"PICKLIST\", \"lastModified\": null, \"isDeleted\": false, \"referenceTo\": null, \"orderedValueList\": null }, { \"name\": \"accountTypePicklist2\", \"label\": \"Account Type2\", \"type\": \"PICKLIST\", \"lastModified\": null, \"isDeleted\": false, \"referenceTo\": null, \"orderedValueList\": null }, { \"name\": \"fooBar\", \"label\": \"Foo Bar\", \"type\": \"STRING\", \"lastModified\": null, \"isDeleted\": false, \"referenceTo\": null, \"orderedValueList\": null } ] }}
",
"operationId": "listCrmSchemaFields",
"parameters": [
{
"name": "integrationId",
"in": "query",
"description": "Integration ID generated when creating the integration",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "objectType",
"in": "query",
"description": "Type of object to retrieve the schema fields for (case-sensitive). Enables you to add, edit or remove fields to Gong CRM entities, so that you can display additional CRM data in Gong. Fields that are not included in the Gong CRM objects, and are uploaded without updating your schema, are not displayed in Gong.
Update your schema when:
/v2/crm/entities
API.When updating your schema:
Date | Action | Result |
---|---|---|
3/4/2023 | Send account schema with fieldA | fieldA added to the account |
6/4/23 | Send account schema with fieldA and fieldB | fieldA still included in account schema. fieldB added to the account |
8/4/23 | Send account schema with fieldC but without fieldA and fieldB | Receive an error that you must include all fields in the schema |
15/4/23 | Send account schema with fieldB, fieldC, and isDeleted for fieldA | fieldA and all it's data are deleted. fieldB and fieldC remain in the schema |
When accessed using a bearer token, this endpoint requires the 'api:crm:schema' scope.
This table describes the field types that can be added to your schema
Field type | Format in JSON | Possible values |
---|---|---|
BOOLEAN | boolean | true, false |
DATE | string (ISO-8601 date without time) | \"2020-05-31\" |
DATETIME | string (ISO-8601 datetime without milliseconds) | \"2020-12-17T07:37:21+02:00\" \"2020-12-17T05:37:21Z\" |
PICKLIST | string - one of the values in an orderedValueList | \"Analyst\" |
NUMBER | number | 45.66, 8453 |
PERCENT | number (between 0 to 100) | 67.3 |
CURRENCY* | number | 34.68 |
PHONENUMBER | string | \"+14055766687\" |
EMAILADDRESS | string | \"john.doe@anywhere.com\" |
REFERENCE | string - the id of another object | \"48b009drax\" |
ID | string - the id of the object | \"843hf8484jr84htg\" |
STRING | string | \"whatever you want\" |
URL | string | \"https://crm.com/account/6d4r578f\" |
* In the integration send a number value, and specify the correct currency symbol in the Gong UI. Currently Gong does not support multiple currencies per company.
POST https://api.gong.io/v2/crm/entity-schema?integrationId=6286478263646&objectType=ACCOUNT
[{\"uniqueName\": \"orderId\", \"label\": \"ID\", \"type\": \"ID\", \"lastModified\": \"2020-11-11T08:11:34+01:00\"},
{\"uniqueName\": \"parentAccount\", \"label\": \"Main Account\", \"type\": \"REFERENCE\", \"referenceTo\": \"ACCOUNT\", \"lastModified\": \"2020-11-11T08:11:34+01:00\"},
{\"uniqueName\": \"category\", \"label\": \"Category\", \"type\": \"PICKLIST\", \"orderedValueList\": [\"Analyst\", \"Competitor\", \"Customer\", \"Integrator\", \"Investor\", \"Partner\", \"Other\"], \"lastModified\": \"2020-11-11T08:11:34+01:00\"},
// remove custom field
{\"uniqueName\": \"industry\", \"isDeleted\": true, \"label\": \"Industry\", \"type\": \"PICKLIST\", \"lastModified\": \"2020-11-21T08:11:34+01:00\"}]
Returns a JSON object where each key is the object’s crm id and the corresponding value is a nested JSON object representing the CRM object fields. Each key in the nested JSON is the field name and the corresponding value is the field value.
The objects are fetched from the Gong main DB. If the object is not found, the JSON’s value is null.
The request body contains an array of objects ids.
The request is limited to 100 objects. If more than 100 objects are requested only the first 100 are returned.
When accessed using a bearer token, this endpoint requires the 'api:crm:get-objects' scope.
GET https://api.gong.io/v2/crm/entities?integrationId=6286478263646&objectType=DEAL
[\"1234\",\"8765\"] //request body
",
"operationId": "getCrmObjects",
"parameters": [
{
"name": "integrationId",
"in": "query",
"description": "Integration ID generated when creating the integration",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "integer",
"format": "int64"
}
},
{
"name": "objectType",
"in": "query",
"description": "Requested objects type",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string",
"enum": [
"ACCOUNT",
"CONTACT",
"DEAL",
"LEAD"
]
}
},
{
"name": "objectsCrmIds",
"in": "query",
"description": "Request Body: The requested objects crm ids (should be sent in the request body)",
"required": true,
"style": "form",
"explode": true,
"schema": {
"uniqueItems": true,
"type": "array",
"items": {
"type": "string"
}
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved requested objects data",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetGenericCrmObjectsResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/calls/transcript": {
"post": {
"tags": [
"Calls"
],
"summary": "Retrieve transcripts of calls (/v2/calls/transcript)",
"description": "Returns transcripts for calls that took place during the specified date period. If call IDs are specified, only transcripts for calls with those IDs that took place during the time period are returned.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:calls:read:transcript'.",
"operationId": "getCallTranscripts",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PublicApiBaseRequestV2CallsFilter"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CallTranscripts"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "No calls found for the specified period",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/workspaces": {
"get": {
"tags": [
"Settings"
],
"summary": "List all company workspaces (/v2/workspaces)",
"description": "Returns a list of all workspaces including their details.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:workspaces:read'.",
"operationId": "listWorkspaces",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WorkspacesMetadata"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/users": {
"get": {
"tags": [
"Users"
],
"summary": "List all users (/v2/users)",
"description": "List all of the company's users.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:users:read'.",
"operationId": "listUsers",
"parameters": [
{
"name": "cursor",
"in": "query",
"description": "When paging is needed, provide the value supplied by the previous API call to bring the following page of records.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string"
},
"example": "eyJhbGciOiJIUzI1NiJ9.eyJjYWxsSWQiM1M30.6qKwpOcvnuweTZmFRzYdtjs_YwJphJU4QIwWFM"
},
{
"name": "includeAvatars",
"in": "query",
"description": "Avatars are synthetic users representing Gong employees (CSMs and support providers) when they access your instance. References to avatars' IDs may be found in the outputs of other API endpoints. This parameter is optional, if not provided avatars will not be included in the results.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "boolean"
},
"example": false
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UsersMetadata"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"403": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/users/{id}": {
"get": {
"tags": [
"Users"
],
"summary": "Retrieve user (/v2/users/{id})",
"description": "Retrieve a specific user.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:users:read'.",
"operationId": "getUser",
"parameters": [
{
"name": "id",
"in": "path",
"description": "Gong's unique numeric identifier for the user (up to 20 digits).",
"required": true,
"style": "simple",
"explode": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/User"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "User not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/users/{id}/settings-history": {
"get": {
"tags": [
"Users"
],
"summary": "Retrieve user settings history (/v2/users/{id}/settings-history)",
"description": "Retrieve a specific user's settings history.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:users:read'.",
"operationId": "getUserHistory",
"parameters": [
{
"name": "id",
"in": "path",
"description": "Gong's unique numeric identifier for the user (up to 20 digits).",
"required": true,
"style": "simple",
"explode": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SettingsHistory"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "User not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/settings/trackers": {
"get": {
"tags": [
"Settings"
],
"summary": "Retrieve tracker details (/v2/settings/trackers)",
"description": "Retrieves details of all keyword trackers in the system or in a given workspace.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the 'api:settings:trackers:read' scope.",
"operationId": "listTrackers",
"parameters": [
{
"name": "workspaceId",
"in": "query",
"description": "The ID of the workspace the keyword trackers are in. When empty, all trackers in all workspaces are returned.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Trackers"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "Workspace not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/settings/scorecards": {
"get": {
"tags": [
"Settings"
],
"summary": "Retrieve scorecards details (/v2/settings/scorecards)",
"description": "Retrieve all the scorecards within the Gong system.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:settings:scorecards:read'.",
"operationId": "listScorecards",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Scorecards"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "Scorecards not found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/permission-profile/users": {
"get": {
"tags": [
"Permissions"
],
"summary": "List all users attached to a given permission profile (/v2/permission-profile/users)",
"description": "Returns a list of all users whose access is controlled by the given permission profile.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:users:read'.",
"operationId": "listPermissionProfileUsers",
"parameters": [
{
"name": "profileId",
"in": "query",
"description": "Permission profile identifier.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PermissionProfileUsersResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/logs": {
"get": {
"tags": [
"Auditing"
],
"summary": "Retrieve logs data by type and time range (/v2/logs)",
"description": "List log entries that took place during a specified time range.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:logs:read'.",
"operationId": "listLogs",
"parameters": [
{
"name": "logType",
"in": "query",
"description": "Type of logs requested.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string",
"enum": [
"AccessLog",
"UserActivityLog",
"UserCallPlay",
"ExternallySharedCallAccess",
"ExternallySharedCallPlay"
]
}
},
{
"name": "fromDateTime",
"in": "query",
"description": "The time from which to retrieve log records, in the ISO-8601 format (e.g., '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC).",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
},
{
"name": "toDateTime",
"in": "query",
"description": "The time until which to retrieve log records, in the ISO-8601 format (e.g., '2018-02-18T02:30:00-07:00' or '2018-02-18T08:00:00Z', where Z stands for UTC); if not specified, the logs end with the latest recorded log.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
},
{
"name": "cursor",
"in": "query",
"description": "When paging is needed, provide the value supplied by the previous API call to bring the following page of records.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string"
},
"example": "eyJhbGciOiJIUzI1NiJ9.eyJjYWxsSWQiM1M30.6qKwpOcvnuweTZmFRzYdtjs_YwJphJU4QIwWFM"
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LogsResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "No logs found for the specified period",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/library/folders": {
"get": {
"tags": [
"Library"
],
"summary": "Retrieve Library folders (/v2/library/folders)",
"description": "Use this endpoint to retrieve a list of public library folders. We do not allow retrieval of either private or archived folders.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:library:read'.",
"operationId": "getLibraryStructure",
"parameters": [
{
"name": "workspaceId",
"in": "query",
"description": "Workspace identifier. We will retrieve folders which are related to this specific workspace.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LibraryResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "No folders found for the specified period",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/library/folder-content": {
"get": {
"tags": [
"Library"
],
"summary": "List of calls in a specific folder (/v2/library/folder-content)",
"description": "Given a folder id, this endpoint retrieves a list of calls in it.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:library:read'.",
"operationId": "getCallsInSpecificFolder",
"parameters": [
{
"name": "folderId",
"in": "query",
"description": "Gong's unique numeric identifier for the folder (up to 20 digits).",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LibraryFolderListOfCallsResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"404": {
"description": "No folders found for the specified period",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/flows": {
"get": {
"tags": [
"Engage Flows"
],
"summary": "List Gong Engage flows (/v2/flows)",
"description": "Engage flows have the following visibility types: \n\n* Company: visible to everyone in the company, can only be edited by users with edit permissions. \n\n* Personal: reps can set up their own flows which are only available to them. \n\n* Shared: reps can share a flow with other reps. Those reps can then add leads to the flow. \n\nThis endpoint returns all company flows, together with personal flows and flows shared with the user specified in the flowEmailOwner parameter. \n\nWhen accessed through a Bearer token authorization method, use the 'api:flows:read' scope. ",
"operationId": "listFlows",
"parameters": [
{
"name": "flowOwnerEmail",
"in": "query",
"description": "Email of the Gong user whose personal flows and flows shared with the user you want to return.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string"
},
"example": "test@test.com"
},
{
"name": "cursor",
"in": "query",
"description": "When paging is needed, provide the value supplied by the previous API call to bring the following page of records.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string"
},
"example": "eyJhbGciOiJIUzI1NiJ9.eyJjYWxsSWQiM1M30.6qKwpOcvnuweTZmFRzYdtjs_YwJphJU4QIwWFM"
},
{
"name": "workspaceId",
"in": "query",
"description": "Optional Workspace identifier, if supplied the API will return only the flows belonging to this workspace.",
"required": false,
"style": "form",
"explode": true,
"schema": {
"type": "string"
},
"example": 623457276584334
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FlowsResponse"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/data-privacy/data-for-phone-number": {
"get": {
"tags": [
"Data Privacy"
],
"summary": "Retrieve all references to a phone number. (/v2/data-privacy/data-for-phone-number)",
"description": "Shows the elements in the Gong system that reference the given phone number. Given a phone number, this endpoint returns details of any leads or contacts with this phone number and their associated calls and email messages.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:data-privacy:read'.",
"operationId": "findAllReferencesToPhoneNumber",
"parameters": [
{
"name": "phoneNumber",
"in": "query",
"description": "The phone number.\n\nThis number must start with a + (plus) sign followed by the country code, area code, and local phone number. All other non-digits are ignored.\n\nThe following are examples of permitted phone numbers: +1 425 555 2671, +1-425-555-2671, +1 425 5552671, +14255552671, +1 425 555 26 71, +1(425) 555-2671, etc.\n\nNote: This parameter should be URL-encoded.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string"
},
"example": "+1(425) 555-2671"
}
],
"responses": {
"200": {
"description": "Successful request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PhoneNumberReferences"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/data-privacy/data-for-email-address": {
"get": {
"tags": [
"Data Privacy"
],
"summary": "Retrieve all references to an email address. (/v2/data-privacy/data-for-email-address)",
"description": "Shows the elements in the Gong system that reference the given email address. Given an emails address, this endpoint returns details of all calls and email messages that reference this address, and any leads or contacts with this email address.\n\nWhen accessed through a Bearer token authorization method, this endpoint requires the scope 'api:data-privacy:read'.",
"operationId": "findAllReferencesToEmailAddress",
"parameters": [
{
"name": "emailAddress",
"in": "query",
"description": "The email address.",
"required": true,
"style": "form",
"explode": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/EmailAddressReferences"
}
}
}
},
"400": {
"description": "Malformed request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"401": {
"description": "Access denied",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"429": {
"description": "API request limit exceeded",
"headers": {
"Retry-After": {
"description": "Number of seconds to wait before making a new request.",
"style": "simple",
"explode": false,
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "Failed to complete the operation due to an unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v2/crm/request-status": {
"get": {
"tags": [
"CRM"
],
"summary": "Get Request Status (/v2/crm/request-status)",
"description": "Returns the current status of the request for endpoints run asynchronously:
When accessed using a bearer token, this endpoint requires the 'api:crm:upload' scope.
When the status in the response is FAILED do one of the following:
errors.line
attribute, locate and correct the data in the JSON file.