Guides

Organise with folders

Keep API transcripts in folders that also show up in the ScribeFiles dashboard.

Code examples use API and HEADERS (headers in JavaScript), set up as in the Quickstart.

Why folders

Folders group transcripts by client, show or project. They're shared with the dashboard: a folder you create through the API shows up in the ScribeFiles sidebar, and the other way round.

Create a folder and send files to it

# Create the folder once
curl https://scribefiles.com/v1/folders \
  -H "Authorization: Bearer $SCRIBEFILES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Client interviews"}'

# Then send files straight into it
curl https://scribefiles.com/v1/transcripts \
  -H "Authorization: Bearer $SCRIBEFILES_API_KEY" \
  -F file=@call.mp3 \
  -F folder_id=FOLDER_ID

Folder names are unique per account (ignoring capitals): creating one that exists gives a 409 conflict. List your folders to find an existing one.

Move a transcript

Set folder_id with update, or set it to null to take the transcript out of its folder.

curl -X PATCH https://scribefiles.com/v1/transcripts/TRANSCRIPT_ID \
  -H "Authorization: Bearer $SCRIBEFILES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"folder_id": FOLDER_ID}'

List what's in a folder

curl "https://scribefiles.com/v1/transcripts?folder_id=FOLDER_ID" \
  -H "Authorization: Bearer $SCRIBEFILES_API_KEY"

Deleting a folder

Deleting a folder never deletes transcripts: the ones inside simply leave the folder.

Questions about the API? Contact us.