Avatar of Errol Farro
Errol Farro
Flag for Aruba

asked on 

Using ColdFusion with Sendgrid’s API

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>>'


ColdFusion Language

Avatar of undefined
Last Comment
David H.H.Lee

8/22/2022 - Mon