Skip to main content
You can use this endpoint to get all the products in your store, with the main things you need for a shop page: name, price, photo, colors and whether it’s sold out.
GET

Authorization

All you need is your API key in the Authorization header.
string
required
Bearer, a space, then your API key. You can find it in Baag App → Settings → Developers.

Response

When everything goes well, you get back status 200 with all your products in data, newest first:
Here is what each part means:
  • slug is the product’s short name. Keep it: you will need it to get the product’s full details and to start a checkout.
  • priceRange is the lowest and highest price of the product. When sizes or colors have different prices, they’re not the same, so you can show “From 25,000 RWF”.
  • isSoldOut is true when nothing is left to buy.
  • imageUrl is the product’s first photo, or null when it has none.
  • Archived products are not in the list.
To show one product with all its photos, sizes and stock, use Get product with its slug.

Error Responses

Returned with status 401 when the request has no Authorization header. Add your key as Authorization: Bearer pk_live_xxxxxxxxx.
Returned with status 401 when the key is wrong, or it was regenerated in Baag App. Copy your key again from Settings → Developers.
Returned with status 403 when your store’s plan doesn’t include the API. Your key works again as soon as your store is on the Basic or Pro plan.
Returned with status 429 when your key sent too many requests in a short time. Wait a moment, then try again.
Returned with status 500 when something went wrong on Baag’s side. It’s not your fault. Wait a moment, then try again.