A helper script to export your threads from Plain.
You'll need to generate a new API key with (at a minimum) the following permissions:
company:read
customer:read
timeline:read
thread:read
threadField:read
threadFieldSchema:read
For more information on generating an API Key, please refer to the docs here.
npm install
npm run build
PLAIN_API_KEY=XXX node dist/threads-export.js