Folders

Organise transcripts into folders, including nested folders within a workspace or shared drive.

Use the Folders API to organise transcripts into folders. You can list all folders, create new folders (including nested folders), and retrieve a single folder. Folders can belong to a personal workspace or a shared drive. Authenticate with Basic Authentication using your API key ID and secret.

List all folders

Return every folder available to you. Pass the optional workspace-id query parameter to scope the results to a particular workspace or shared drive. Nested folders include a parent field referencing the _id of their parent folder.

List Folders

gethttps://api.trint.com/folders/

List folders

Query parameters

workspace-idstringoptional

The ID of given workspace/shared drive

GET /
curl --request GET \  --url 'https://api.trint.com/folders/' \
  --header 'Authorization: Basic YOUR_BASE64_KEY_ID_AND_SECRET'

Response 200

200 response
[{
  _id: 'folder-1',
  name: 'Folder 1',
}, {
  _id: 'folder-2',
  name: 'Folder 2',
}, {
  _id: 'folder-3',
  name: 'Nested Folder',
  parent: 'folder-2',
}]
200200

Create a new folder

Create a new folder. Provide a name, and optionally a parentId to nest the folder inside an existing one, or a workspaceId to create it within a specific workspace or shared drive.

Create Folder

posthttps://api.trint.com/folders/

Create folder

Body parameters

namestringrequired

Folder name

parentIdstringoptional

Parent id for nested folders

workspaceIdstringoptional

ID of desired workspace/shared drive

POST /
curl --request POST \  --url 'https://api.trint.com/folders/' \
  --header 'Authorization: Basic YOUR_BASE64_KEY_ID_AND_SECRET' \
  --header 'Content-Type: application/json' \
  --data '{}'

Response 200

200 response
{}
200200
400400

Retrieve a single folder

Retrieve a single folder by its folderId. Pass the optional workspaceId query parameter when the folder belongs to a specific workspace or shared drive.

Retrieve Folder

gethttps://api.trint.com/folders/folder

Query parameters

folderIdstringrequired
workspaceIdstringoptional
GET /folder
curl --request GET \  --url 'https://api.trint.com/folders/folder?folderId=YOUR_FOLDERID' \
  --header 'Authorization: Basic YOUR_BASE64_KEY_ID_AND_SECRET'

Response 200

200 response
{}
200200
400400