Apollo.io API Workflow

Hi. I’m new to Make.com (and not an IT guy, just a savy tech enthusiast) but have created some effective workflows for my business which work great. I’m currently having issues with a workflow that includes an API call to Apollo.io, to search for the contacts in our Apollo account.

I have a webhook that pulls in a JSON from a tool in our Relevance AI. I’ve set the Webhook to parse the JSON straight through to the Apollo module to make an API call. See images of my JSON and mapping. The API call gets no errors but the output from the API has nothing to do with my JSON search query. Note that the Apollo API call module has my API authorization key already added to the module.

I’m lost on what I’ve done wrong and was hoping for some guidance.

This is the bundle content from the Webhook output:
[
{
“value”: “{\n "qs": [\n {\n "person_titles": ["Sales director", "Marketing manager"],\n "person_locations": ["Australia"],\n "q_organization_domains_list": ["microsoft.com"],\n "contact_email_status": "verified",\n "per_page": 10\n }\n ]\n}”
}
]

This is the Apollo API input:
[
{
“url”: “api/v1/mixed_people/search”,
“body”: “{\n "qs": [\n {\n "person_titles": ["Sales director", "Marketing manager"],\n "person_locations": ["Australia"],\n "q_organization_domains_list": ["microsoft.com"],\n "contact_email_status": "verified",\n "per_page": 10\n }\n ]\n}”,
“method”: “POST”,
“headers”: [
{
“key”: “Content-Type”,
“value”: “application/json”
},
{
“key”: “Cache-Control”,
“value”: “no-cache”
}
]
}
]

This is an example of the Apollo output which is just random and doesn’t match my search query:

Sorry I’d I’ve given too much above but also never use a community like this before.

Thanks in advance.

Hi Paul,

You API request JSON payload should look like this:
{
“person_titles”:[
“Sales director”,
“Marketing manager”
],
“person_locations”:[
“Australia”
],
“q_organization_domains_list”:[
microsoft.com
],
“contact_email_status”:“verified”,
“per_page”:10
}

I just tested it via a custom API request, and it returns the people data.


Thanks @ponvaskon, really appreciate the response. When I have had the payload in that Json format previouly I get this error

.
That is why I changed the format to what I had, and the API call worked but returned irrelevant people for the search.

When I test the JSON from your example, I get this error:


I’ve definitely not set this up correctly somewhere.

Hi @Paul_Baker

Please try to make an API request via the HTTP module. I attached the blueprint of the required modules. Just import it in a draft scenario, copy the modules to your main flow, and update the API key.
blueprint (1).json (11.0 KB)

Ho @ponvaskon - thank you so much.

I’ve been able to run those modules correctly, I believe. It’s pulling out the data based on the search query. I’ll just use HTTP modules rather than the Apollo modules. Really appreciate your assistance.

1 Like

Hi @Paul_Baker

You’re welcome!