Storefront API
Forms & enquiries
Send shopper messages into a store, where the merchant sees them in the dashboard.
Enquiries (no key)
POST
/storefront/{storeSlug}/enquiryPublicCreates an enquiry in the store’s Enquiries inbox. Safe to call from a browser or app.
bash
curl -X POST "https://api.progare.com/storefront/mahi-studio/enquiry" \
-H "Content-Type: application/json" \
-d '{ "name": "Asha", "email": "asha@example.com", "phone": "9876543210",
"message": "Do you ship to Dubai?" }'The body is stored as-is, so you can add your own fields (for example productSlug or budget) and the merchant sees them. Returns { "ok": true, "id": "…" }.
Newsletter
POST
/storefront/{storeSlug}/newsletterPublicBody:
{ "email": "…" }. Adds the address to the store’s subscriber list.Order tracking
POST
/storefront/{storeSlug}/track/lookupPublicBody:
orderNumber and contact (the email or phone on the order). If they match, the shopper is emailed a tracking link. The response is always the same, so it never reveals whether an order exists.GET
/storefront/{storeSlug}/track/{token}PublicOrder status and shipments for the token in a tracking link.
From your own server (API key)
If you run a separate website (for example a brand site on WordPress or Next.js) and want its forms to land in a Progare store, post from your server with an API key.
POST
/api/leads/submitAPI keyCreates a lead. Body:
email, domain (your website), ownerEmail (the store owner’s account email), optional name and message.POST
/api/notifications/emailAPI keyEmails a form submission to the store’s inbox, sent and logged by Progare — so your website never needs its own email credentials. Body:
storeSlug, subject, and html or text; optional replyTo (set it to the visitor’s email so the merchant can reply directly).Next.js route handler
export async function POST(req: Request) {
const form = await req.json();
const res = await fetch("https://api.progare.com/api/leads/submit", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.PROGARE_API_KEY!, // server-side only
},
body: JSON.stringify({
name: form.name,
email: form.email,
message: form.message,
domain: "mybrand.com",
ownerEmail: "owner@mybrand.com",
}),
});
return Response.json({ ok: res.ok }, { status: res.ok ? 200 : 502 });
}Something unclear or out of date? Tell us