Hi there! I'm new to callin.io, and while I'm not in IT, I'm a tech enthusiast who's built some effective workflows for my business that work quite well. I'm currently running into an issue with a workflow that involves an API call to Apollo.io to search for contacts in our Apollo account.
I'm receiving JSON data from a tool in Relevance AI via a webhook. I've configured the webhook to pass the JSON directly to the Apollo module for an API call. You can see images of my JSON and the mapping I've set up. The API call itself isn't returning any errors, but the output I'm getting doesn't seem to relate to my search query at all. Just to confirm, the Apollo API call module already has my API authorization key configured.
I'm a bit stuck on what I might have done wrong and would appreciate some guidance.
This is the bundle content from the Webhook output:json
[
{
“value”: “{n "qs": [n {n "person_titles": ["Sales director", "Marketing manager"],
"person_locations": ["Australia"],
"q_organization_domains_list": ["microsoft.com"],
"contact_email_status": "verified",
"per_page": 10
}
]
}”
}
]
This is the Apollo API input:json
[
{
“url”: “api/v1/mixed_people/search”,
“body”: “{n "qs": [n {n "person_titles": ["Sales director", "Marketing manager"],
"person_locations": ["Australia"],
"q_organization_domains_list": ["microsoft.com"],
"contact_email_status": "verified",
"per_page": 10
}
]
}”,
“method”: “POST”,
“headers”: [
{
“key”: “Content-Type”,
“value”: “application/json”
},
{
“key”: “Cache-Control”,
“value”: “no-cache”
}
]
}
]
This is an example of the Apollo output, which appears to be random and doesn't match my search query:
Apologies if I've provided too much information; this is my first time using a community forum like this.
Thanks in advance for any help!
Hi Paul,
Your API request JSON payload should be structured as follows:
json
{
"person_titles": [
"Sales director",
"Marketing manager"
],
"person_locations": [
"Australia"
],
"q_organization_domains_list": [
"<a href="http://microsoft.com" rel="noopener nofollow ugc">microsoft.com</a>"
],
"contact_email_status": "verified",
"per_page": 10
}
I've just tested this using a custom API request, and it successfully returns the people data.
Thank you for the response, I really appreciate it. When I previously used the payload in that JSON format, I encountered this error:
This is why I adjusted the format to what I had previously, and the API call was successful but returned irrelevant individuals for the search.
When I test the JSON from your example, I receive this error:
I suspect I haven't configured this correctly somewhere.
Hi there,
Please try to make an API request using the HTTP module. I've attached the blueprint for the necessary modules. You can import it into a draft scenario, copy the modules to your main workflow, and then update the API key.
blueprint (1).json (11.0 KB)
Please provide the rewritten markdown content *it should be in the markdown format.
Thank you so much.
I’ve managed to run those modules successfully, I think. It’s extracting the data according to the search query. I’ll proceed with using HTTP modules instead of the Apollo modules. I truly appreciate your help.
Hi
You're welcome!
Please provide the rewritten markdown content *it should be in the markdown format.