Why connect themThe MX Lookup API in Twilio.
Twilio enables programmable communications. Integrating APIs with Twilio enables intelligent SMS workflows, validated calling, and data-rich messaging. Build smart communication systems that respond with context.
What you can buildWorkflows worth wiring.
Validate phone numbers before sending SMS campaigns
Send personalized messages with data from external APIs
Create intelligent auto-responses based on message content analysis
Route calls based on caller data from lookup APIs
TemplatesReady-made ideas.
New domain check (via webhook) Look up MX records → send SMS if emptySMS alert when domain has no MX records
Get an instant SMS via Twilio whenever an MX lookup returns an empty mx array for a monitored domain.
New contact added Look up MX records → trigger SMS if validVerify domain before sending SMS
Before sending a welcome SMS via Twilio, look up MX records for the contact's email domain. Only send SMS if the mx array is non-empty.
SetupConnect it in a few steps.
Set up with Zapier
- 1
Set the trigger. Create a Zap with Twilio as the trigger app and "New SMS received" as the event. Connect your account.
- 2
Add the API action. Add APIVerve as the action, select the MX Lookup API, and map your trigger data to the request.
- 3
Send it back. Add a second Twilio action for "Send SMS" and map the returned fields (like domain) into it.
- 4
Test & turn on. Test the Zap with real data to confirm the mapping, then turn it on.
Set up with Make
- 1
Add the trigger. Create a scenario and add a Twilio module set to "New SMS received". Authenticate your account.
- 2
Call the API. Add an HTTP module pointing at api.apiverve.com/v1/mxlookup with your x-api-key header. Pass the trigger's data as the input.
- 3
Parse & map. Add a JSON module to read the response, then a Twilio module for "Send SMS". Map fields like data.domain into place.
- 4
Activate. Run once to confirm the mapping, then switch the scenario on and set its schedule.
Set up with n8n
- 1
Add the trigger node. Start a workflow with a Twilio trigger node for "New SMS received" and connect your credentials.
- 2
Add an HTTP Request node. Point it at api.apiverve.com/v1/mxlookup using Header Auth (x-api-key). Feed in the trigger data.
- 3
Map with expressions. Add a Twilio node for "Send SMS" and reference the response with expressions such as {{ $json.data.domain }}.
- 4
Execute & activate. Execute manually to verify, then activate the workflow for production.
The payloadWhat Twilio receives.
domain"yahoo.com"
mxarray of 3