Download OpenAPI specification:Download
The SingPass Face Verification Service ("SingPass Face") verifies the facial features of a SingPass eligible user against the Governments' biometrics data source.
Token is to be authenticated to access the Singpass Face Verification
key required | string The key within the key-value pair of the header |
value required | string The value within the key-value pair of the header |
{- "key": "Authorization",
- "value": "Basic ZjU3M2ZiMjJiZDUxNDRmZTlhYjIzZjA5MTk0MDZjMzU6WkRZMVlUY3hOMkl0TW1JMU5TMDBPVGsxTFRrMU16SXRaak0yWWpnMU9HTmpOell5"
}
{- "access_token": "eyJvcmciOiIiLCJpZCI6IjFlZTNhZjllNWNkYjQ3NmFiMjI2OGE1ODBjMjE2OWZlIiwiaCI6InNoYTI1NiJ9",
- "token_type": "bearer",
- "expires_in": 1800
}
Checks if a SingPass user is eligible for the face scan before generating a token.
service_id required | string The service ID identifies the agency’s digital service. |
user_id required | string The asserted identifier of the user. E.g. NRIC, FIN |
transaction_type | string Type of transaction (eg. onboarding, authentication) |
{- "service_id": "SingPass",
- "user_id": "S1234567A",
- "transaction_type": "SingPass onboarding"
}
{- "registered": true
}
Generate a session token for an SingPass user to initiate the face verification process based on the Face Verify method. This API would return a session token to be used when initialising the client SDK and calling the validate API.
service_id required | string The service ID identifies the agency’s digital service. |
user_id required | string The asserted identifier of the user. E.g. NRIC, FIN |
transaction_type | string Type of transaction (eg. onboarding, authentication) |
{- "service_id": "SingPass",
- "user_id": "S1234567A",
- "transaction_type": "SingPass onboarding"
}
{- "token": "31706131726336496d655177346e55503279616b69547344446e5258684c7542"
}
This API would be called after the face scanning process to retrieve the face verification result. Subsequent calls will return a 400 error.
service_id required | string The service ID identifies the agency's digital service. |
user_id required | string The asserted identifier of the user (e.g. NRIC, FIN) |
token | string The token that is returned after calling the token API |
ip required | string Public IP address of the device making this request |
client required | string This is the information that describes the type of client device making the request (e.g. User Agent) |
{- "service_id": "SingPass",
- "user_id": "S1234567A",
- "token": "31706131726336496d655177346e55503279616b69547344446e5258684c7542",
- "ip": "203.125.138.178",
- "client": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"
}
{- "passed": true,
- "token": "31706131726336496d655177346e55503279616b69547344446e5258684c7542",
- "extra_data": {
- "face_matcher": {
- "score": 0.90036
}
}, - "reason": "Please Keep Still",
- "retries_remaining": 5
}
This API will directly verify the user's captured photo based on the Face Compare method.
The image should be:
service_id required | string The service ID identifies agency’s digital service. |
user_id required | string The asserted identifier of the user. E.g. NRIC, FIN |
transaction_type | string Type of transaction (eg. onboarding, authentication) |
image required | string (Image) base64 encoded png or jpg |
{- "service_id": "SingPass",
- "user_id": "S1234567A",
- "transaction_type": "SingPass onboarding",
- "image": "string"
}
{- "score": 0.90036
}