Comment on page
API Documentation
A list of API endpoints supported by sgID.
The API endpoints listed here are for reference purposes only. sgID users are strongly recommended to use the SDK(s) provided which sends these requests for you.
If there are no SDKs provided for your programming language, please refer to Custom Integration on how to set up your own integration.
Do not reuse the example code challenge and code verifier provided in the API examples, as this would expose your API requests to PKCE guessing attacks by malicious users. Refer to the example code under the SDKs section on how to generate valid
<code_verifier, code_challenge>
pairs.get
https://api.id.gov.sg
/v2/oauth/authorize
Create authorization URL
post
https://api.id.gov.sg
/v2/oauth/token
Token exchange
get
https://api.id.gov.sg
/v2/oauth/userinfo
Request for user info
get
https://api.id.gov.sg
/v2/.well-known/jwks.json
sgID public keys
get
https://api.id.gov.sg
/v2/.well-known/openid-configuration
sgID OpenID Provider Configuration Document