Skip to content

Quickstart

Base URL

All supplier HTTP routes share this prefix:

/public-api/shop/v1/

Append it to the host the Ask Ayurveda team gives you (for example https://api.ask-ayurveda.com/public-api/shop/v1/).

First authenticated request

  1. Contact the Ask Ayurveda team for an API key tied to your supplier account. You receive the secret once; store it like any other credential.
  2. Call GET /public-api/shop/v1/variants/?limit=1 with either header:
http
Authorization: Bearer <your_api_key>

or

http
X-Supplier-Token: <your_api_key>

curl

bash
curl -sS -H "Authorization: Bearer YOUR_KEY" \
  "https://api.ask-ayurveda.com/public-api/shop/v1/variants/?limit=1"

Python

python
import requests

BASE = "https://api.ask-ayurveda.com/public-api/shop/v1"
headers = {"Authorization": "Bearer YOUR_KEY"}
r = requests.get(f"{BASE}/variants/", params={"limit": 1}, headers=headers, timeout=60)
r.raise_for_status()
print(r.json())

Next steps