EN / FR / DE

7.2 Usage

Accessing with Access Token via Curl

The exact parameters must be specified by the application provider. Here are general guidelines:

curl --header 'Authorization: Bearer <Access Token>' https://<oauth2.application.hin.ch>

Example with Covercard

curl --location 'https://oauth2.covercard.hin.ch/covercard/servlet/ch.ofac.ca.covercard.CaValidationHorizontale?type=XML&langue=3&carte=<health insurance card number>&ReturnType=42a' \
  --header 'Authorization: Bearer <covercard_Access Token>'