Using the REST API from Make
Make lets you chain REST API calls in a scenario, without writing code. A common use case: setting up a campaign from contacts that come from a CRM or a spreadsheet, then sending the test to the team that approves it.
This page explains the settings on the Make side. The methods, their parameters and their errors are described in the REST API documentation, which this page links to instead of repeating them. The labels quoted are those of Make’s English interface.
Declare Make’s IPs
The REST API only accepts calls from IPs declared in your account. A scenario’s calls leave from Make’s servers: it is therefore Make’s outgoing IPs that must be declared, not your computer’s.
Make uses 3 IPs per zone and a scenario can go out through any of them: declare all 3. Your account’s zone appears in Make’s address, for example eu1.make.com.
| Make zone | IPs to declare |
|---|---|
| eu1.make.com | 54.75.157.176, 54.78.149.203, 52.18.144.195 |
| eu2.make.com | 34.254.1.9, 52.31.156.93, 52.50.32.186 |
| us1.make.com | 54.209.79.175, 54.80.47.193, 54.161.178.114 |
| us2.make.com | 44.209.150.16, 44.210.162.163, 35.170.163.230 |
| eu1.make.celonis.com | 3.125.27.86, 3.68.125.41, 18.193.24.45 |
| us1.make.celonis.com | 44.196.246.20, 3.94.51.90, 52.4.48.212 |
This list was recorded on 27 November 2026. Make may change it: the reference remains Make’s official page, “Egress IPs” column.
Enter the 3 IPs on your account’s API page, separated by commas, as described in Declare your IPs. If a module receives Error auth ip, first check that the declared IPs are those of your account’s zone.
Call a method
Each call is an HTTP > Make a request module:
| Field | Value |
|---|---|
| URL | https://www.mdworks.fr/api_http/METHOD_NAME |
| Method | POST |
| Body content type | application/JSON |
| Body input method | JSON string, or Data structure |
| Parse response | Yes |
The body always contains api_key, plus the method’s parameters:
{
"api_key": "YOUR_API_KEY",
"campaign_id": 123456
}With Parse response set to Yes, the response fields (campaign_id, credits, result…) can be mapped directly in the following modules.
Watch out for values coming from a previous module. In a JSON string, a mapped value that contains quotes or line breaks breaks the JSON, and the API responds Error POST json_decode. This is almost always the case with a message’s HTML. For these calls, build the body with the JSON > Create JSON module and map its result in the HTTP module, or switch to Data structure: Make then escapes special characters itself.
Spot errors
The API always responds with HTTP code 200, even in case of error (see Responses and errors). For Make, a rejected call is therefore a successful call: the module turns green and the scenario goes on.
Make’s error handlers, such as Retry, do not see these errors. You have to spot them with a filter, set on the link between the HTTP module and the next one:
- condition on
errorwith the Not exists operator: the scenario only goes on if the call succeeded; - to handle a specific case, add a Router and a route whose filter tests the text of
message. This text is stable from one version to the next, so you can filter on it.
Setting up a campaign: the typical scenario
The scenario follows the sequence of calls described in the API documentation, one HTTP module per method.
| Step | HTTP module | To map in the following modules |
|---|---|---|
| 1. Check access and credits | account_info | credits |
| 2. Create the campaign | campaign_create | campaign_id, in all following modules |
| 3. Load the message | campaign_set_message | |
| 4. Add the recipients | campaign_add_recipients or inject_segmentlist_2_campaign | |
| 5. Wait for the cleaning to finish | campagne_import_status | result, the final number of recipients |
| 6. Read the campaign back | campaign_get | subject, sender, number of recipients |
| 7. Send the test | campaign_send_test |
The send to the recipients is then done in the platform’s interface: the API never triggers it.
Create the campaign in a single module
campaign_create accepts all its parameters in the same call: reference, subject, sender, reply-to address, preheader, language. A single module is enough, there is no need to chain updates.
Load the message
The HTML usually comes from a previous module: a template stored in Make, an HTTP module that downloads a page, a text generator. The platform does not accept a URL to download: Make retrieves the HTML and sends it in the html parameter. Build this body with Create JSON or as a Data structure, for the reason given above.
Add the recipients
Two cases:
- the contacts come from another tool (CRM, spreadsheet, business database):
campaign_add_recipientsaccepts 255 rows at most per call. Group the contacts in batches of 255 with the Array aggregator module, then call the method once per batch. Each row of a batch is an object with the keysemail,nom(last name),prenom(first name),perso1toperso24; - the contacts are already in a platform list: a single
inject_segmentlist_2_campaignmodule is enough, with or without a filter on the list’s fields.
If you also feed a platform list with list_insert, start with a list_fields module: it gives the names of the list’s fields, to match with those of the source tool.
Resend a batch rejected during the cleaning
After each batch, the platform cleans the campaign’s recipients. Meanwhile, the next batch is rejected with Error a cleaning of the recipients is running on this campaign, try again in a few seconds (see Retry during a cleaning). This is not a failure: simply send the same batch again.
Since this rejection comes with HTTP 200, Make’s Retry error handler does not trigger it. Build the retry with a Router:
- after the
campaign_add_recipientsmodule, a Router with two routes; - route 1, filter
errorNot exists: the batch went through, carry on; - route 2, filter on
messagecontaininga cleaning of the recipients is running: a Tools > Sleep module of 15 to 30 seconds, then a secondcampaign_add_recipientsmodule that sends the same batch again.
For large volumes, a Sleep pause of a few seconds before each batch reduces rejections.
Wait for the cleaning to finish
campagne_import_status responds "running" while the cleaning is in progress, then the final number of recipients. To call it in a loop:
- a Repeater module, with the maximum number of checks in Repeats, for example 20;
- a Tools > Sleep module, for example 15 seconds (300 at most);
- the
campagne_import_statusHTTP module; - a filter that only lets through responses whose
resultis not equal torunning; - an Array aggregator whose Source Module is the Repeater: it groups the responses into a single bundle, so that the rest of the scenario runs only once.
The Repeater goes through all its repetitions, even once the cleaning is over. Size it according to the volume: 20 repetitions of 15 seconds leave 5 minutes for the cleaning. If no response passes the filter, the aggregator’s Stop processing after an empty aggregation option stops the scenario before the test send.
Read back and send the test
A campaign_get module reads the campaign back: subject, sender, preheader, number of recipients. You can reuse its values in an email or a message sent to the team along with the test.
The campaign_send_test module then sends the test, to 10 addresses at most. Each test sent through the API costs one credit per address.
Once the test is approved, find the campaign in the interface under the reference chosen at step 2, and send or schedule it.