accessToken & refreshToken

post

accessToken & refreshToken

Used by 3rd party applications to get the Access token using the Authorization code and refresh the Access token using the Refresh Token. To get access token, the following values are required
  • Code
  • Redirect_url
To refresh token, the following value is required
  • Refresh_token

Resource URL

https://account.visitsingapore.com /sso/oauth/accessToken

Body Parameters

Name Values Description
client_id
(required)

Client ID of the Application (e.g h1XLl7z0QXb6t2r7lAEgseWGt02AazMv)

client_secret
(required)

Client Secret of the Application (e.g prL5Og6MmRGnkrIs)

grant_type
(required)

Type of grant (authorization_code)

code

Authorization Code value

redirect_uri

Redirect URL for the Client Appliction

refresh_token

Refresh Token Value

Try it out

HTTP Basic

OAuth 2.0

API Key

RESET

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Response Error Details

HTTP Code Error Code Description
400 400 Bad Request
401 401 Unauthorized
404 404 Not found

Resource Summary

Security Content Type Category

application/x-www-form-urlencoded

Visit Singapore Account OAuth API

Working...