{
provider_id: "exchangeExample",
connection: { type: "oauth2" }
}redirect_url, the login URL for exchangeExample. Note that the response will also include "added": false to indicate the process is not complete. Your application should send the user to redirect_url.{
"data": {
"redirect_url": "https://login.exchangeExample.com/oauth2/auth?response_type=code&redirect_uri=https%3A%2F%2Fwidget.getcalico.com%2Foauth-success%2Fcb&client_id=<CLIENT_ID>&scope=wallet%3Aaccounts%3Aread%2Cwallet%3Atransactions%3Aread%2Coffline_access&state=<STATE>",
"added": false
},
"errors": []
}curl --location --request POST 'https://api.getcalico.com/accounts/v2/oauth/callback/exchangeExample?state=<STATE>&code=<CODE>' \
--header 'Authorization: Bearer <TOKEN>'201.curl --location --request POST 'https://api.getcalico.com/accounts/v2/oauth/callback/?state&code' \
--header 'Authorization: Bearer <token>'{
"data": {
"added": true,
"redirect_url": "string"
},
"errors": [
{
"provider_id": "string",
"cause": "bad_request"
}
]
}