Чем не устраивает эта инструкция?
https://doc.tslab.pro/tslab/rabota-s-programmoi/tslab-api/vvedenie-v-api