Is it possible to create or copy a table by using api?

Is it possible to create or copy a table by using api in the same base?

Which API are you interested in? It is possible with the custom apps api, but not the others. I recommend reading the developer documentation; that’s the best place to see if something can be done and how.

I couldnt even find a script or app or example. All I need is to copy a table, give a new name by using a link outside airtable.

No, it is not possible to create a new table from a link outside of Airtable.