API support for SPA