API ReferenceFolder

Create folder

Create a new folder in the workspace. You can create a root-level folder or a sub-folder by specifying a parentFolderId.

POST/spaces/{spaceId}/folders

Authorization API key in the x-api-key header

Path parameters

  • spaceIdstringrequired

    ID of the workspace. You can find from the url in dashboard when you open the workspace or using the list workspaces endpoint.

Body

application/json · object

  • namestringrequired

    Name of the folder

  • parentFolderIdstring · nullablerequired

    ID of the parent folder. Pass null to create a root-level folder.

Responses

  • 200Created folder

    application/json · Folder

    • idstringrequired
    • createdAtstringrequired
    • updatedAtstringrequired
    • namestringrequired
    • workspaceIdstringrequired
    • parentFolderIdstring
  • 400Invalid input

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 401Authentication failed

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 403You don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 404Not found or don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

curl 'https://transcript.lol/api/v1/spaces/string/folders' \
  --request POST \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "name": "My Folder",
  "parentFolderId": null
}'
const response = await fetch("https://transcript.lol/api/v1/spaces/string/folders", {
  method: "POST",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "name": "My Folder",
    "parentFolderId": null
  }),
});
const text = await response.text();
import requests

response = requests.post(
    "https://transcript.lol/api/v1/spaces/string/folders",
    headers={
        "x-api-key": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    data="{\n  \"name\": \"My Folder\",\n  \"parentFolderId\": null\n}",
)
print(response.text)
{
  "id": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "name": "string",
  "workspaceId": "string",
  "parentFolderId": "string"
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}