Get third party auth URL
Get the thirdparty provider’s authorisation URL to which the user should be redirected to.
GET
/{apiBasePath}/{tenantId}/authorisationurlPath parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
tenantIdstringThe tenant against which the request is made. If left empty, the default tenant will be used.
Query parameters
thirdPartyIdthirdPartyIdrequiredredirectURIOnProviderDashboardredirectURIrequiredclientTypeclientTypeHeader parameters
ridstringThe third party recipe ID
Responses
200Get the OAuth authorisation URL
One of:
object
statusstatusOKrequiredSuccess status indicator
Allowed:
OKurlWithQueryParamsstringpkceCodeVerifierstringgeneralErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Parameters
Request
curl -X GET "/auth/public/authorisationurl?thirdPartyId=google&redirectURIOnProviderDashboard=https%3A%2F%2Fyourdomain.com%2Fcallback"const response = await fetch("/auth/public/authorisationurl?thirdPartyId=google&redirectURIOnProviderDashboard=https%3A%2F%2Fyourdomain.com%2Fcallback", {
method: "GET"
});import requests
response = requests.get(
"/auth/public/authorisationurl?thirdPartyId=google&redirectURIOnProviderDashboard=https%3A%2F%2Fyourdomain.com%2Fcallback",
)Response
{
"status": "OK",
"urlWithQueryParams": "https://providerdomain.com/authorize?client_id=..&scope=..&access_type=..",
"pkceCodeVerifier": "abcd1234"
}"Not Found""Internal Error"