Request Access Token

POST /REST/v1/OAuth/GetAccessToken/ACS-Applikation HTTP/1.1
Host: oauth2.hin.ch
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&client_id=client_id&client_secret=client_secret
ValueDescription
URLhttps://oauth2.hin.ch/REST/v1/OAuth/GetAccessToken/<TokenGroup>
grant_typeclient_credentials (fixed defined value)
client_idclient_id issued by HIN
client_secretSecret generated via apps.hin.ch

Obtaining an access token using Curl:

curl --header 'Content-Type: application/x-www-form-urlencoded' \
     --data-urlencode "grant_type=client_credentials" \
     --data-urlencode "client_id=<client_id>" \
     --data-urlencode "client_secret=<client_secret>" \
     https://oauth2.hin.ch/REST/v1/OAuth/GetAccessToken/ACS-Applikation