Gong Library API
Operations for browsing and retrieving library content
Operations for browsing and retrieving library content
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/gong:gong-library-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Gong Library API
description: 'Overview
The Gong API allows you to:
Receive the following information from Gong:
Your company''s calls in Gong
Your company''s users in Gong
Your company''s user stats in Gong
Your company''s user settings in Gong
Your company''s libraries in Gong
Upload new or
update
call recordings in Gong, in order to support cases where you have an internal system that records
calls or obtains them from a third-party entity.
Data Privacy:
Delete users and all their associated elements.
Upload CRM data into Gong.
Check here what''s your base URL for all API calls.
Authentication
There are two ways to retrieve credentials to the Gong Public API:
Retrieve Manually:
In the Gong API Page (you
must be a technical administrator in Gong), click "Create" to receive an Access Key
and an Access Key Secret.
Use the Basic Authorization HTTP header (as per RFC)
to access the Public API as shown below:
Authorization: Basic <token>
To create the basic token, combine the Access Key and the Access Key Secret with
colon (:) and then encode in Base64 as following:
Base64(<accessKey> : <accessKeySecret>)
Retrieve through OAuth
To obtain the Bearer token, follow the steps described in the Gong OAuth Guide.
After obtaining the token, use the Bearer Authorization HTTP header
(as per RFC)
to access the Public API as shown below:
Authorization: Bearer <token>
Limits
By default Gong limits your company''s access to the service to 3 API calls per second, and 10,000 API calls per day.
When the rate of API calls exceeds these limits an HTTP status code 429 is returned and a Retry-After header indicates
how many seconds to wait before making a new request.
If required, contact help.gong.io to change these limits.
Cursors
Some API calls that return a list are limited in the amount of records they may return, so multiple API calls may be
required to bring all records. Such an API call also returns a records field, which contains the number of records
in the current page, the current page number and the total number of records.
In cases where the total number of records exceeds the number of records thus far retrieved, the records field will also
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
the cursor value as supplied by the previous API call. All other request inputs should remain the same.
Forward Compatibility
When coding a system to accept Gong data, take into account that Gong may, without prior warning, add fields to the JSON output.
It is recommended to future proof your code so that it disregards all JSON fields you don''t actually use.'
version: V2
servers:
- url: https://127.0.0.1:8443
description: Generated server url
tags:
- name: Library
description: 'Gong’s “Library” API endpoints allow you to:
Request all the calls in a specific folder.
Request all the Library folders. We do not allow retrieval of either private or archived folders.'
paths:
/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.
When 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
exampleSetFlag: false
types:
- string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/LibraryResponse'
exampleSetFlag: false
exampleSetFlag: false
'400':
description: Malformed request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
'401':
description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
'404':
description: No folders found for the specified period
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
'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
exampleSetFlag: false
types:
- integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
'500':
description: Failed to complete the operation due to an unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
/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.
When 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
exampleSetFlag: false
types:
- string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/LibraryFolderListOfCallsResponse'
exampleSetFlag: false
exampleSetFlag: false
'400':
description: Malformed request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
'401':
description: Access denied
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
'404':
description: No folders found for the specified period
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
'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
exampleSetFlag: false
types:
- integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
'500':
description: Failed to complete the operation due to an unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
exampleSetFlag: false
exampleSetFlag: false
components:
schemas:
LibraryResponse:
type: object
properties:
requestId:
type: string
description: A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes.
example: 4al018gzaztcr8nbukw
exampleSetFlag: true
types:
- string
folders:
type: array
description: A list, in which each item specifies one folder.
exampleSetFlag: false
items:
$ref: '#/components/schemas/LibraryFolder'
exampleSetFlag: false
types:
- array
exampleSetFlag: false
types:
- object
LibraryCall:
type: object
properties:
id:
type: string
description: Gong's unique numeric identifier of a call (up to 20 digits).
example: '7782342274025937895'
exampleSetFlag: true
types:
- string
title:
type: string
description: The title of the call.
example: Example call
exampleSetFlag: true
types:
- string
note:
type: string
description: A note attached to the call in the folder. The note is optional.
example: sample note
exampleSetFlag: true
types:
- string
addedBy:
type: string
description: Gong's unique numeric identifier for the user who added the call to folder.
example: '234599484848423'
exampleSetFlag: true
types:
- string
created:
type: string
description: The date and time when the call was added to folder in the ISO-8601 format (e.g., '2020-01-12T14:30:00-08:00').
format: date-time
example: 1578868200.0
exampleSetFlag: true
types:
- string
url:
type: string
description: URL of the call.
example: https://app.gong.io/call?id=3636865806219496180&highlights=%5B%7B%22to%22%3A+3240%2C+%22from%22%3A+1200%2C+%22type%22%3A+%22LIBRARY%22%7D%5D
exampleSetFlag: true
types:
- string
snippet:
$ref: '#/components/schemas/Snippet'
exampleSetFlag: false
description: Basic details such as id, title, notes, etc.
exampleSetFlag: false
types:
- object
Snippet:
type: object
properties:
fromSec:
type: integer
description: Call snippet start in seconds relative to the call start time. For example 305 is a snippet that starts after 5 minutes and 5 seconds after the beginning of the call.
format: int32
example: 21
exampleSetFlag: true
types:
- integer
toSec:
type: integer
description: Call snippet end in seconds relative to the call start time. For example 900 means that this snippet ends after exactly 15 minutes after the beginning of the call.
format: int32
example: 132
exampleSetFlag: true
types:
- integer
description: Snippet of call
exampleSetFlag: false
types:
- object
LibraryFolder:
type: object
properties:
id:
type: string
description: Gong's unique numeric identifier for a library's folder (up to 20 digits).
example: '3843152912968920037'
exampleSetFlag: true
types:
- string
name:
type: string
description: Display name of the folder.
example: Sales Onboarding
exampleSetFlag: true
types:
- string
parentFolderId:
type: string
description: Gong's unique numeric identifier for library's parent folder (null for root folder).
example: '295738305212375930'
exampleSetFlag: true
types:
- string
createdBy:
type: string
description: Gong's unique numeric identifier for the user who added the folder.
example: '234599484848423'
exampleSetFlag: true
types:
- string
updated:
type: string
description: Folder's last update time in the ISO-8601 format (e.g., '2020-03-14T05:30:00-08:00').
format: date-time
example: 1584192600.0
exampleSetFlag: true
types:
- string
description: Basic details such as sub-folders, title, etc.
exampleSetFlag: false
types:
- object
ErrorResponse:
type: object
properties:
requestId:
type: string
description: A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes.
example: 4al018gzaztcr8nbukw
exampleSetFlag: true
types:
- string
errors:
type: array
description: Error messages.
example:
- An error has occurred
exampleSetFlag: true
items:
type: string
exampleSetFlag: false
types:
- string
types:
- array
exampleSetFlag: false
types:
- object
LibraryFolderListOfCallsResponse:
type: object
properties:
requestId:
type: string
description: A Gong request reference Id, generated for this request. Can be used for troubleshooting purposes.
example: 4al018gzaztcr8nbukw
exampleSetFlag: true
types:
- string
id:
type: string
description: Gong's unique numeric identifier for a library's folder (up to 20 digits).
example: '3843152912968920037'
exampleSetFlag: true
types:
- string
name:
type: string
description: Display name of the folder.
example: Sales Onboarding
exampleSetFlag: true
types:
- string
createdBy:
type: string
description: Gong's unique numeric identifier for the user who added the folder.
example: '234599484848423'
exampleSetFlag: true
types:
- string
updated:
type: string
description: Folder's last update time in the ISO-8601 format (e.g., '2020-03-14T05:30:00-08:00').
format: date-time
example: 1584192600.0
exampleSetFlag: true
types:
- string
calls:
type: array
description: A list, in which each item represents one library call.
exampleSetFlag: false
items:
$ref: '#/components/schemas/LibraryCall'
exampleSetFlag: false
types:
- array
exampleSetFlag: false
types:
- object
x-provenance:
method: harvested
publisher: Gong
source: https://app.gong.io/ajax/settings/api/documentation/specs?version=
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)