troubleshooting Question

Using ColdFusion with Sendgrid’s API

Avatar of Errol Farro
Errol FarroFlag for Aruba asked on
ColdFusion Language
1 Comment1 Solution12 ViewsLast Modified:
Sendgrid provides a set of API to retrieve data at https://docs.sendgrid.com/for-developers/sending-email/getting-started-email-activity-api

How would one get the API to work in ColdFusion ?

1. Filter by subject
curl --request GET \
 --url 'https://api.sendgrid.com/v3/messages?limit=10&query=subject%3D<<subject>>' \
 --header 'authorization: Bearer <<your API key>>'

2. Filter by recipient email
curl --request GET \
 --url 'https://api.sendgrid.com/v3/messages?limit=10&query=to_email%3D%22<<email>>%22' \
 --header 'authorization: Bearer <<your API key>>'

3. Filter by bounced emails
curl --request GET \
 --url 'https://api.sendgrid.com/v3/messages?limit=10&query=status%3D%22bounced%22' \
 --header 'authorization: Bearer <<your API key>>'


ASKER CERTIFIED SOLUTION
David H.H.Lee
Digital Marketing (Hospitality)
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros