I have gone through the official API web. "https://developer.sketch.com/reference/api/" and I did not find how to add a layer to an artboard.
I found that "addLayer" can accomplish what I want on this forum, where is the API "addLayer" from?
Thank you guys. Looking forward to your answer.