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'.
The ID of the workspace the folders belong to. Use the Workspaces API to look up workspace IDs.
Successful response
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
The folders in the workspace's company library.
A folder in the company library.
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.
The name of the folder.
The Gong ID of the folder this folder is in. Null for a folder at the top level of the company library.
The Gong user ID of the user who created the folder.
The date and time the folder was last modified, in ISO-8601 format, in the company's time zone.
- The request doesn't include a workspace ID, or the ID in
workspaceIdisn't a number.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- 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.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
No folders found for the specified period
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- The company sent more requests than its rate limit allows. Wait the number of seconds in
Retry-After, then send the request again.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.
- Gong couldn't complete the request because of an unexpected error. Try again. If the error continues, contact Gong Support and give them the
requestIdfrom the response.
The Gong ID of this request. Provide it to Gong Support to troubleshoot a problem with the request.
Error messages.