cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

Prod key needs to be passed as Bearer token or x-api-key #447

Open suchdeep opened 3 years ago

suchdeep commented 3 years ago

I have received prod key for accessing public api, currently we don't need any api key for public apis's so wanted to know that this key should be assigned to which header parameter?

BhawanjitSinghSaini commented 3 years ago

x-api-key

badinenisaivardhan commented 3 years ago

hey @suchdeep Cowin-Public API Doesn't Require A API KEY , But To Access All Users Based Logged In Content You Require A JWT Token , Which is Placed In Header 'Authorization': Bearer ${data.token} to access the sensitive content..

suchdeep commented 3 years ago

Actually i had requested no rate limit access to Cowin Public Api as currently there is 100/5 min limit. My request got approved and i got a prod key and also my ip got whitelisted. So wanted to know how to pass that prod key as a header.

badinenisaivardhan commented 3 years ago

you can use x-api-key : value in header 👍