Talewright Docs Open the app

How do I list the files of a workspace with curl?

curl -s "https://app.usetalewright.com/v1/workspaces/$WORKSPACE/files?type=image&limit=20" \
  -H "Authorization: Bearer $TALEWRIGHT_API_KEY"

While nextCursor is not null, repeat with &cursor=$NEXT_CURSOR.