Start OAuth authorization code flow with PKCE
curl --request GET \
--url https://api.swapnice.com/oauth/authorizeconst options = {method: 'GET'};
fetch('https://api.swapnice.com/oauth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.swapnice.com/oauth/authorize"
response = requests.get(url)
print(response.text)"<string>"{
"error": {
"code": "consent_denied",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
]
}
}OAuth
Start browser authorization
Browser-facing authorize page for hosted connect UX.
GET
/
oauth
/
authorize
Start OAuth authorization code flow with PKCE
curl --request GET \
--url https://api.swapnice.com/oauth/authorizeconst options = {method: 'GET'};
fetch('https://api.swapnice.com/oauth/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.swapnice.com/oauth/authorize"
response = requests.get(url)
print(response.text)"<string>"{
"error": {
"code": "consent_denied",
"message": "<string>",
"request_id": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
]
}
}Browser-facing authorize page for hosted connect UX.
Use this only if you are embedding the hosted connection page. Partner backends should call POST /oauth/authorize instead.
Query Parameters
Available options:
code Minimum string length:
16Minimum string length:
43Available options:
S256 Optional account-linking session to complete after user authorization.
Response
Renders the user authorization and consent page when interaction is required.
The response is of type string.
⌘I