latestOpenAPI 3.0.02026-08-1091020.6 KB
6db43b35bc50
oauth
Request for user info
Exchange access token for user info as part of sgID authorization code flow
get/v2/oauth/userinfo
Response
Successfully retrieve user info from sgID
Example response
{
"sub": "abcdef",
"key": "eyJhbGcDpgYRL4chyXTjgim...[truncated]...Gxa2tO7nghnu-ewD5ZqA",
"data": {
"myinfo.nric_number": "eyJlbmMiOiJ...[truncated]...QafqHmGERc3A",
"myinfo.name": "eyJlbmMiOi...[truncated]...UgJ9hDSTNLVw",
"myinfo.passport_expiry_date": "eyJlbmMiOi...[truncated]...UvS41pKk9VKQ"
}
}