Singpass

Singapore's eID https://www.singpass.gov.sg/main/arrow-up-right

Verify

post

Verify

Authorizations
x-client-idstringRequired

API Key authentication using x-client-id and x-client-secret headers.

x-client-secretstringRequired

The client secret used for API key authentication.

Body
redirectstringRequired

Redirect URI after user authorization.

Browser: https URL to your website.

Mobile: Universal link (your-app://) or app scheme.

Example: https://www.yourwebsite.com/callback
typestring · enumOptional

QR code type

Possible values:
startinteger · int64Optional

Start timestamp in milliseconds (must be >= current time)

endinteger · int64Optional

End timestamp in milliseconds (must be > start time)

durationinteger · min: 1Optional

Duration in milliseconds (positive integer)

responseFormatstring · enumOptional

Format of the response (url, qr, or both)

Default: bothPossible values:
Responses
chevron-right
200

Success

application/json
post
/sgid/request/qr

MyInfo

post

MyInfo enables relying party to retrieve personal details.

Authorizations
x-client-idstringRequired

API Key authentication using x-client-id and x-client-secret headers.

x-client-secretstringRequired

The client secret used for API key authentication.

Body
attributesstring[]Required

attributes to be requested from user

redirectstringRequired

Redirect URI after user authorization.

Browser: https URL to your website.

Mobile: Universal link (your-app://) or app scheme.

Example: https://www.yourwebsite.com/callback
Responses
chevron-right
200

Success

application/json
post
/sgid/request/auth

MyInfo Business

post

enables business-to-business use case for retrieval of corporate data and applicant's personal data.

Authorizations
x-client-idstringRequired

API Key authentication using x-client-id and x-client-secret headers.

x-client-secretstringRequired

The client secret used for API key authentication.

Body
attributesstring[]Optional

attributes to be requested from user

redirectstringOptional

Redirect URI after user authorization.

Browser: https URL to your website.

Mobile: Universal link (your-app://) or app scheme.

Example: https://www.yourwebsite.com/callback
Responses
chevron-right
200Success

No content

post
/sgid/request/auth-biz
200Success

No content

MyInfo Redirect

get

This is the URL that /sgid/request/auth returns. It stores a cookie on the user's browser and redirects to Singpass authorization site.

Responses
chevron-right
200Success

No content

get
/sgid/redirect
200Success

No content

MyInfo Callback

get

This is the callback URL that Singpass redirects to after user authorizes the data request.

Responses
chevron-right
200Success

No content

get
/sgid/callback/person
200Success

No content

Biz Callback

get

This is the callback URL that Singpass redirects to after user authorizes the data request.

Responses
chevron-right
200Success

No content

get
/sgid/callback/person-biz
200Success

No content

Verify Callback

get

This is the callback URL that Singpass redirects to after user authorizes the data request.

Responses
chevron-right
200Success

No content

get
/sgid/callback/verify
200Success

No content

jwks.json

get
Responses
chevron-right
200Success

No content

get
/sgid/jwks.json
200Success

No content

Poll Data

post

That endpoint is used to obtain the requested data.

Authorizations
x-client-idstringRequired

API Key authentication using x-client-id and x-client-secret headers.

x-client-secretstringRequired

The client secret used for API key authentication.

Body
tokenstringRequired

The token received on the first request.

Example: 2dmR0VVufvic0vrVIluVBVi1EXtkCwIZ331as0Em
Responses
chevron-right
200

OK - Data successfully retrieved

application/json
post
/sgid/callback/client

Last updated