Creating a table in a draw document

my goal is to use APIs to create a table in a draw document. Which API should start with?

Please edit your question and say, which programming language you want to use (Basic, Java, Python).

Insert a table into a Draw document and look at it with the development tools. On the Properties tab you will find a lot of needed information. For example, the property ShapeType shows you what to use for creating a table. Do you have experience with creating other kind of shapes?

https://wiki.documentfoundation.org/Documentation/BASIC_Guide#Drawings_and_Presentations