Hello Make.com Community,
I’m having trouble using the Create Connection API when working with OAuth connections. For non-OAuth connections (e.g., accountType: "basic"
), everything works fine. However, when I attempt to create a connection with Wild Apricot (which uses OAuth), I encounter issues. Here’s what happens:
Steps I Took:
- Used the Create Connection API:
- Endpoint:
/v2/connections?teamId=
- Request body:
{
"accountName": "WA Connection",
"accountType": "wild-apricot",
"scopes": [
"auto"
],
"apiKey": key
}
- Response:
{
"connection": {
"id": 3722614,
"name": "WA Connection",
"accountName": "wild-apricot",
"accountLabel": "Wild Apricot",
"packageName": null,
"expire": null,
"metadata": null,
"teamId": 740188,
"theme": "#0f9d58",
"upgradeable": false,
"scopes": 0,
"scoped": true,
"accountType": "oauth",
"editable": true,
"uid": null
}
}
However, no connection is created in my Make.com account. This makes sense since Wild Apricot requires OAuth, which involves verification and authorization.
2. Attempted OAuth Authorization:
- I used the
/v2/oauth/auth/{connectionId}
endpoint in my browser to obtain an authorization token or URL. - The browser displayed a message saying, “Close this window to continue,” but nothing happened afterward.
My Question:
How do I properly create and authorize an OAuth connection using Make.com’s API?
Specifically:
- Is there a way to trigger the OAuth authorization flow after creating the connection?
- How can I use the
/v2/oauth/auth
endpoint to authenticate via the 3rd party service? - Are there additional steps required to make this work?
Any guidance on how to resolve this would be greatly appreciated. Thank you!