Users
Get login url to redirect to myinfo
GET http://localhost:3001/users/me/external/myinfo-redirect-login
Get login url to redirect to myinfo. This url contains attributes about person data requested to myinfo.
{
"message": "OK",
"data": {
"url": "https://test.api.myinfo.gov.sg/com/v3/authorise?client_id=STG2-MYINFO-SELF-TEST&attributes=name,dob,birthcountry,nationality,uinfin,sex,regadd&state=eb03c000-00a3-4708-ab30-926306bfc4a8&redirect_uri=http://localhost:3001/callback&purpose=python-myinfo-connector",
"state": "eb03c000-00a3-4708-ab30-926306bfc4a8"
}
}url: url to redirect to myinfo.
state: Identifier that represents the user's session/transaction with the client for reconciling query and response. The same value will be sent back via the callback URL. Use a unique system generated number for each user/transaction.
Get person data from myinfo
GET http://localhost:3001/users/me/external/myinfo
Get person data from myinfo. The API is final step of myinfo-connector-python
Query Parameters
regadd: Registered Address of Person (including FIN holders)
dob: Date of Birth of Person.
sex: Sex of Person.
name: Full Name of the Person.
birthcountry: Country of Birth of Person. Refer to country in code table provided HERE for description of each code.
nationality: Nationality of Person. Refer to the Code reference tables in the Support section for list of possible values.
unifin: Singapore issued identification number of the Person.
Last updated