Connections
In Make, you need to create a connection for most apps. Make then uses this connection to communicate with the third-party service and to authenticate your requests to the third-party service. The following endpoints allow you to create and manage connections.
Retrieves a collection of all connections for a team with a given ID. Returned connections are sorted by name in ascending order.
The unique ID of the team whose connections will be retrieved.
22
Specifies the type of the connections to return details for. The connection type is defined in the accountName
property and you can get it from the Get connection details endpoint.
{"value":"airtable2"}
GET /api/v2/connections HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"connections": [
{
"id": 2,
"name": "My Airtable connection",
"accountName": "airtable2",
"accountLabel": "Airtable",
"packageName": null,
"expire": null,
"metadata": null,
"teamId": 22,
"theme": "#18bfff",
"upgradeable": false,
"scopesCnt": 0,
"scoped": true,
"accountType": "basic",
"editable": false,
"uid": null,
"connectedSystemId": "c5d8e134-d2f8-480d-9838-119a54f65d3e",
"organizationId": 3
},
{
"id": 15,
"name": "My Google connection",
"accountName": "google",
"accountLabel": "Google",
"packageName": null,
"expire": null,
"metadata": {
"type": "email",
"value": "[email protected]"
},
"teamId": 22,
"theme": "#fecd5f",
"upgradeable": false,
"scopesCnt": 4,
"scoped": true,
"accountType": "oauth",
"editable": false,
"uid": 225874569526501080000,
"connectedSystemId": "4244156b-88cc-43cf-a5e9-e94bd0304745",
"organizationId": 2343
}
]
}
Creates a new connection with data passed in the request body. In the response, it returns all details of the created connection.
The unique ID of the team whose connections will be retrieved.
1
The connection name. The name must be at most 128 characters long and does not need to be unique.
The connection type corresponding to the connected app. For some connection types, this property may require providing additional properties in the request body, such as clientId
and clientSecret
, in order to authorize the connection and make it functional.
The connection scope determining the module use. The format and number of available scopes vary depending on the accountType
parameter.
POST /api/v2/connections HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 116
{
"accountName": "Slack Test",
"accountType": "slack",
"clientId": 123456,
"clientSecret": "secret",
"scopes": [
"chat:write"
]
}
Successful response
{
"connection": {
"id": 90,
"name": "Slack test",
"accountName": "slack",
"accountLabel": "Slack",
"packageName": null,
"expire": null,
"metadata": {
"value": "Make User",
"type": "string"
},
"teamId": 2,
"theme": "#4a154b",
"upgradeable": false,
"scopes": 0,
"scoped": true,
"accountType": "oauth",
"editable": false,
"uid": 3243125312
}
}
Gets a list of connection parameters that can be updated. You can update a connection with the API call POST /connections/{connectionId}/set-data
.
If the connection cannot be updated then the API call returns the error message "Cannot edit this connection." When this happens, create a new connection instead.
The ID of the connection. You can get connection ID's of all your connections with the the List connections endpoint.
128
GET /api/v2/connections/{connectionId}/editable-data-schema HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"editableParameters": [
"url",
"apiKey"
]
}
Updates the specified connection with data in the request body. Check which data you need to send to update the connection with the API call GET /connections/{connectionId}/editable-data-schema
. The data might be different for each app and connection type.
The new connection data replace the original connection data. Make sure to provide all relevant data. If a field is missing in the request body, Make replaces the field in the new connection with an empty value.
For OAuth connections, you need to log in to Make and confirm the changes with the Reauthorize button. For the rest of the connection types, Make starts using the new connection data immediately.
If the connection cannot be updated then the API call returns the error message "Cannot edit this connection." When this happens, create a new connection instead.
The ID of the connection. You can get connection ID's of all your connections with the the List connections endpoint.
128
The request body has to contain the parameters listed in the response from the API call GET /connections/{connectionId}/editable-data-schema
and the new values associated with them.
POST /api/v2/connections/{connectionId}/set-data HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"url": "example.com",
"apiKey": "your-api-key"
}
Successful response
{
"changed": true
}
Retrieves details of a connection with a given ID.
The ID of the connection. You can get connection ID's of all your connections with the the List connections endpoint.
128
GET /api/v2/connections/{connectionId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"connection": {
"id": 93,
"name": "Google",
"accountName": "google",
"accountLabel": "Google",
"packageName": null,
"expire": null,
"metadata": {
"value": "[email protected]",
"type": "email"
},
"teamId": 4,
"theme": "#fecd5f",
"upgradeable": false,
"scopesCnt": 5,
"scoped": true,
"accountType": "oauth",
"editable": false,
"uid": 123456,
"scopes": [
{
"id": "https://www.googleapis.com/auth/userinfo.email",
"name": "View user's email address",
"account": "google"
},
{
"id": "https://mail.google.com/",
"name": "Access to Gmail.",
"account": "google"
},
{
"id": "openid",
"account": "google"
},
{
"id": "https://www.googleapis.com/auth/spreadsheets",
"account": "google"
},
{
"id": "https://www.googleapis.com/auth/drive",
"name": "Access to Google Drive.",
"account": "google"
}
],
"connectedSystemId": "4244156b-88cc-43cf-a5e9-e94bd0304745",
"organizationId": 3
}
}
Deletes a connection with a given ID and returns the ID in the response.
The ID of the connection. You can get connection ID's of all your connections with the the List connections endpoint.
128
Confirms the deletion if the connection is included in at least one scenario. Confirmation is required because the scenario will stop working without the connection. If the parameter is missing or it is set to false
an error code is returned and the resource is not deleted.
true
DELETE /api/v2/connections/{connectionId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"connection": 1
}
Updates the specified connection's name. The response contains all information about the updated connection.
The ID of the connection. You can get connection ID's of all your connections with the the List connections endpoint.
128
The updated connection name. The name must be at most 128 characters long and does not need to be unique.
PATCH /api/v2/connections/{connectionId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"name": "New name"
}
Successful response
{
"connection": {
"id": 93,
"name": "New Name",
"accountName": "imap",
"accountLabel": "Others (IMAP)",
"packageName": null,
"expire": null,
"metadata": {
"value": "[email protected]",
"type": "email"
},
"teamId": 4,
"theme": "#eb5768",
"upgradeable": false,
"scopesCnt": 0,
"scoped": true,
"accountType": "basic",
"editable": true,
"uid": 123456
}
}
Verifies the connection status. This endpoint usually communicates with the API of the app that includes the given connection and verifies if credentials saved in Make are still valid. It returns the confirmation if the connection is verified (true
) or not (false
).
The ID of the connection. You can get connection ID's of all your connections with the the List connections endpoint.
128
POST /api/v2/connections/{connectionId}/test HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"verified": true
}
Verifies if a scope for a given connection is set. This endpoint returns the information if the connection is scoped (true
) or not (false
).
The ID of the connection. You can get connection ID's of all your connections with the the List connections endpoint.
128
The array with IDs of the scopes for a given connection. The scope ID of a specific connection can be retrieved from the Get connection details endpoint.
POST /api/v2/connections/{connectionId}/scoped HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"scope": [
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/drive"
]
}
Successful response
{
"connection": {
"scoped": false
}
}