vedicAPI

Authentication

Every call sends your API key as a Bearer token. Make and manage keys in the dashboard.

Send your key

Put the key in the Authorization header. A call with no key gets 401 missing_key; a wrong, revoked or expired key gets 401 unknown_key. Neither is charged.

cURL
curl https://api.vedicapi.co/v1/panchang \
  -H "Authorization: Bearer $VEDICAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "date": "2026-11-19", "lat": 28.6139, "lon": 77.209, "tz": "Asia/Kolkata" }'

Your keys

Keys start with sk_live_. Every call counts against your plan's API calls. The Free plan stops at its monthly API calls (429 monthly_limit). Paid plans go on at the extra-call price until your spend cap, if you set one (429 spend_cap). Every call shows in Request logs.

A key is shown once, when you make it. Store it in a secret manager or an environment variable. Never ship a key inside a mobile app or web page.

Rotate a key

In API keys, choose Rotate. You get a new key at once; the old one keeps working for 24 hours so you can deploy, then stops with 401 unknown_key. Revoke a key to stop it immediately.

Allowed domains and IPs

Lock a key to the places that may use it. Add server IPs for backend keys, or domains for keys used from a browser. Calls from anywhere else get 403 not_allowed and are not charged. An empty list allows any caller.

  • IP address
    Example13.233.41.12
    MatchesCalls from that IP only.
  • Domain
    Exampleexample.com
    MatchesBrowser calls whose Origin is that domain or one of its subdomains, such as app.example.com.