API basics
Introduction
Spree comes with a fully-featured API that allows it to operate in a fully headless mode. This means that you can use Spree as a backend and build your custom storefront, mobile app, or any other application that needs to interact with an e-commerce platform.
API v2
Currently Spree includes 2 modern REST APIs:
Storefront API
Designed to allow customers to interact with the store via external applications (e.g. Vue Storefront or a dedicated mobile app)
Platform API
Provides management capabilities, allowing third party apps to perform actions otherwise available via the admin panel.
Legacy REST API v1
Legacy REST API v1 was extracted to spree_api_v1
gem. It is not recommended to use it in new projects, but it’s still available for existing ones.
Was this page helpful?