api documentation for v2 endpoints