write about example of get plan API