Ask AITokenpost https://example.com/oauth2/tokenToken endpoint for authorization code and refresh token grants.