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

API key is not working for Protected Sandbox server #533

Open NHLSougata opened 2 years ago

NHLSougata commented 2 years ago

I am using API key: 3sjOr2rmM52GzhpMHjDEE1kpQeRxwFDr4YcBEimi to access protected sandbox server. This key is there in API Setu for testing. But it is not working. Is there any Key that would work?

API: https://cdndemo-api.co-vin.in/api/v2/auth/generateOTP Request: { "mobile": "9xxxxxxxx6", "secret":"3sjOr2rmM52GzhpMHjDEE1kpQeRxwFDr4YcBEimi" }

Response: { "message": "Forbidden" }

imhkgupta007 commented 2 years ago

I send secret in the header under the name x-api-key as mentioned in the documentation. my error changed to {"errorCode":"USRAUT0015", "error":"Your account does not exist"} and Im still not getting any top. Can anyone help?

shanmugapriyaad commented 2 years ago

I am using API key: 3sjOr2rmM52GzhpMHjDEE1kpQeRxwFDr4YcBEimi to access protected sandbox server. This key is there in API Setu for testing. But it is not working. Is there any Key that would work?

API: https://cdndemo-api.co-vin.in/api/v2/auth/generateOTP Request: { "mobile": "9xxxxxxxx6", "secret":"3sjOr2rmM52GzhpMHjDEE1kpQeRxwFDr4YcBEimi" }

Response: { "message": "Forbidden" }

Shrinith-S commented 2 years ago

image

image

Add the header "x-api-key" : "3sjOr2rmM52GzhpMHjDEE1kpQeRxwFDr4YcBEimi" as shown in screenshot

and pass the mobile number in body { "mobile": "9967XXXXXX" }

it will work

rahulkathet commented 2 years ago

image

image

Add the header "x-api-key" : "3sjOr2rmM52GzhpMHjDEE1kpQeRxwFDr4YcBEimi" as shown in screenshot

and pass the mobile number in body { "mobile": "9967XXXXXX" }

it will work

You are using V2. Did anyone /v3/vaccination/status ?