List company library folders

Prev Next
Get
/v2/library/folders

Returns the folders in a workspace's company library, so that you can find the ID of the folder whose calls you want. The response doesn't include folders in users' own libraries, archived folders or streams.

Each folder is listed before the folders inside it. To rebuild the folder tree, match each folder's parentFolderId to the id of the folder it's in.

If the workspace has no company library folders, or no workspace in the company has the ID you send, the response holds an empty folders list.

Required authorization scope: 'api:library:read'.

Query parameters
workspaceId
stringRequired

The ID of the workspace the folders belong to. Use the Workspaces API to look up workspace IDs.

Responses
200

Successful response

Expand All
object
requestId
string

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

Example4al018gzaztcr8nbukw
folders
Array of object (LibraryFolder)

The folders in the workspace's company library.

object

A folder in the company library.

id
string

The Gong ID of the folder. Up to 20 digits. To list the folder's calls, send this ID in folderId on GET /v2/library/folder-content.

Example3843152912968920037
name
string

The name of the folder.

ExampleSales Onboarding
parentFolderId
string

The Gong ID of the folder this folder is in. Null for a folder at the top level of the company library.

Example295738305212375930
createdBy
string

The Gong user ID of the user who created the folder.

Example234599484848423
updated
string (date-time)

The date and time the folder was last modified, in ISO-8601 format, in the company's time zone.

Example2020-03-14T05:30:00-08:00
400
  • The request doesn't include a workspace ID, or the ID in workspaceId isn't a number.
object
requestId
string

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

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
401
  • The API key or access token is missing or isn't valid.
  • The integration uses OAuth, and its token doesn't have the scope this endpoint requires. The error message names the scope.
object
requestId
string

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

Example4al018gzaztcr8nbukw
errors
Array of string

Error messages.

Example[ "An error has occurred" ]
string
404

No folders found for the specified period

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