Is there any way to obtain the x-axis and y-axis of a plane through API?

I want to model through API calls, but my sketch is a 3D coordinate point, and I think it needs to be converted before it can be drawn on a plane. However, I am not sure about the rules of coordinates on a plane.

Thank you to everyone who helped me.

Answers