Singpass
Singapore's eID https://www.singpass.gov.sg/main/
Verify
API Key authentication using x-client-id and x-client-secret headers.
The client secret used for API key authentication.
Redirect URI after user authorization.
Browser: https URL to your website.
Mobile: Universal link (your-app://) or app scheme.
https://www.yourwebsite.com/callbackQR code type
Start timestamp in milliseconds (must be >= current time)
End timestamp in milliseconds (must be > start time)
Duration in milliseconds (positive integer)
Format of the response (url, qr, or both)
bothPossible values: Success
Bad Request - Invalid input parameters
POST /sgid/request/qr HTTP/1.1
Host: sandbox.staging-api.fill-easy.com
x-client-id: YOUR_API_KEY
x-client-secret: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"redirect": "https://google.com",
"type": "dynamic",
"responseFormat": "both"
}{
"token": "text",
"url": "text",
"qrUrl": "text"
}MyInfo enables relying party to retrieve personal details.
API Key authentication using x-client-id and x-client-secret headers.
The client secret used for API key authentication.
attributes to be requested from user
Redirect URI after user authorization.
Browser: https URL to your website.
Mobile: Universal link (your-app://) or app scheme.
https://www.yourwebsite.com/callbackSuccess
Error
POST /sgid/request/auth HTTP/1.1
Host: sandbox.staging-api.fill-easy.com
x-client-id: YOUR_API_KEY
x-client-secret: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 66
{
"attributes": [
"openid",
"uinfin"
],
"redirect": "https://google.com"
}{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXJ2aWNlIjoiTXlpbmZvIiwiaWRlbnRpZmllciI6InpYbWpubTRsMXVMYmVjbF83MkFJd003ZDVLUDMydXhjLWdjMDZkcWstYmsiLCJsYXN0TW9kaWZpZWRUaW1lIjoxNzUzODQ1ODg5MTI1LCJpYXQiOjE3NTM4NDU4ODl9.XA06zmB0rigt0cjqb4hmYmZuU4DiV85eEch7VuLRixU",
"url": "https://staging.fill-easy.com/canary/sgid/redirect?client_id=tizjwARibgcXmjdcP6Q6nWG5lSQoLow0&scope=uinfin%20name%20mobileno%20email%20dob%20residentialstatus%20nationality%20occupation%20regadd%20sex%20openid&code_challenge=zXmjnm4l1uLbecl_72AIwM7d5KP32uxc-gc06dqk-bk&redirect_uri=https://staging.fill-easy.com/canary/sgid/callback/person"
}enables business-to-business use case for retrieval of corporate data and applicant's personal data.
API Key authentication using x-client-id and x-client-secret headers.
The client secret used for API key authentication.
attributes to be requested from user
Redirect URI after user authorization.
Browser: https URL to your website.
Mobile: Universal link (your-app://) or app scheme.
https://www.yourwebsite.com/callbackNo content
POST /sgid/request/auth-biz HTTP/1.1
Host: sandbox.staging-api.fill-easy.com
x-client-id: YOUR_API_KEY
x-client-secret: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"attributes": [
"name",
"basic-profile",
"financials",
"uinfin",
"capitals"
],
"redirect": "https://google.com"
}No content
That endpoint is used to obtain the requested data.
API Key authentication using x-client-id and x-client-secret headers.
The client secret used for API key authentication.
The token received on the first request.
2dmR0VVufvic0vrVIluVBVi1EXtkCwIZ331as0EmOK - Data successfully retrieved
Bad Request - Invalid request body. Ensure that your request body complies with the requirements.
No credentials - Unauthorized. Ensure that you use the correct authorization process.
POST /sgid/callback/client HTTP/1.1
Host: sandbox.staging-api.fill-easy.com
x-client-id: YOUR_API_KEY
x-client-secret: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 52
{
"token": "2dmR0VVufvic0vrVIluVBVi1EXtkCwIZ331as0Em"
}{
"message": "Success",
"token": "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiRUNESC1FUytBMjU2S1ciLCJraWQiOiJhd2htd2lpSFZtWHlDbVQ0STNTbHNGMFlaR3hQaTdZNlpZN2k3MWFKT29VIiwiZXBrIjp7Imt0eSI6IkVDIiwiY3J2IjoiUC0yNTYiLCJ4IjoiUG1hdnNVbm1PWm5VZ1hPbVp0NFFaZlhzV29aYzNCSWZwc1k2cEZvdlNVayIsInkiOiJSOWJsWHgyRWRhc0ZRZS1jdmNIZjRLRlVtNHdENnU1dWtLT0ZCQWNxbFBjIn19.GUSFK_egIc_vQFFmNU-D8MeRHvTusZimikIgQ1Ya1aTXBgQuL_2yag.vI1LENahMwXvoMWixrENnQ.vyrQ0uRek_3fcKiAEtbW1sXnGKtmOPBfs7As1SbSpiP6PhrzsKjcrAc-EvVYTjnm_FAQkVQLTgPnue9iF91D8BHKeDdTJGBrBSRJnhmwPDqnAyr-8cMCNCLz1nc_BbY4sbCUd5nookypqYAIF_PjZwKF1hmSZK2xObQhevBVC-A--cAFmRMcOx82wYgSFbMOQbJrlEcc_V0VOGvMm5bgXsjwcmCbPVNSi9Y06vo3lMcwVHuvphV8nPx78V1nOx96VLFyVihLAVE3lfBNBFA97lEU75ICox67yQPrmN8KXnfB1QiWZL2pTM3VvNBgDSa0ik68IBCTaNtFL4XYxxW8-K3SIuUdrHjmNjJ75Bkw_N1WFHZpfTHnuRuqlMGyxe7Mcmozrm6q87lKBqZzEdtRhY8GLbs4SdWaLk0l4qbOSKmll-DoD1wqOGcFRg2Q-t5RbKUOUg3BI0-8WP5i-NKjPQ.9LGHH6HcuS9UAZ_Npk70fw"
}Last updated