Skip to content

Token Check

This call can be used to verify the validity of the oAuth2 token:

Production:

shellscript
curl --location 'https://oauth2.hin.ch/REST/v1/OAuth/GetTokenInfo' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'token=***********' \
--data-urlencode 'client_id=********' \
--data-urlencode 'client_secret=**********'

Return value if handle is valid:

http
HTTP/1.1 200 OK
{
 "active":true,
 "description":"Client ID for the E-Prescription service.",
 "exp":1772856936,
 "expires_in":8256196,
 "expires_on":"2026-03-07T04:15:36Z",
 "name":"System Doctor One"}
}

Return value if handle is invalid or expired:

http
HTTP/1.1 200 OK
{ 
   "active" = "false"
}

version 1.0.0