Getting started
You can call the Storefront API right now: it only needs a publishable key, which is public by design.
1. Read a demo business
Section titled “1. Read a demo business”The demo business Foulad Store uses this publishable key:
pk_ccc8aa9718ae70bac46d4c9172f8cb3a5e8faf0dc521c30248239725d12ca241curl https://api.sedra.one/store/foulad/tenant \ -H "x-publishable-api-key: pk_ccc8aa9718ae70bac46d4c9172f8cb3a5e8faf0dc521c30248239725d12ca241"The response describes the business: name, handle, default locale, theme tokens and storefront content. The key picks the business; you never pass a tenant ID to the Storefront API.
2. List products
Section titled “2. List products”curl "https://api.sedra.one/store/products?limit=3&fields=id,title,handle,*variants.calculated_price®ion_id=$REGION_ID" \ -H "x-publishable-api-key: pk_ccc8aa9718ae70bac46d4c9172f8cb3a5e8faf0dc521c30248239725d12ca241"Get a region_id from GET /store/regions first (Bahrain uses BHD with three decimals). Without a region the products come back without prices.
3. Continue with the flow you need
Section titled “3. Continue with the flow you need”| You are building | Next step |
|---|---|
| A website or shopping app | Storefronts, then the Storefront API reference |
| A back-office integration (ERP, accounting, warehouse) | Authentication to get an sdr_int_ credential, then the Merchant Agent API |
| An AI assistant for a merchant | MCP server |
| An iPhone or iPad app | Apple apps |
| A vending machine or kiosk | Vending and POS (preview) |
Environments
Section titled “Environments”There is one environment today: development, at https://api.sedra.one. It holds demo businesses and only accepts sandbox payments. Separate staging and production environments with their own base URLs will be announced in the changelog.