Skip to content

Instantly share code, notes, and snippets.

@vivienschilis
Created January 19, 2018 14:02
Show Gist options
  • Save vivienschilis/91445809fb3bb2a584434b176d19e945 to your computer and use it in GitHub Desktop.
Save vivienschilis/91445809fb3bb2a584434b176d19e945 to your computer and use it in GitHub Desktop.
Sendgrid
Sendgrid
REST API using json
»·Verison 3
Authentication
Token within headers - We already support it
»·Authorization: Bearer Your.API.Key-HERE
Rate limiting
429 plus classic headers
Pagination link header
Stats endpoint support date range filtering
```
»·"metrics": {
»·»·"blocks": 1,
»·»·"bounce_drops": 0,
»·»·"bounces": 0,
»·»·"clicks": 0,
»·»·"deferred": 1,
»·»·"delivered": 1,
»·»·"invalid_emails": 1,
»·»·"opens": 1,
»·»·"processed": 2,
»·»·"requests": 3,
»·»·"spam_report_drops": 0,
»·»·"spam_reports": 0,
»·»·"unique_clicks": 0,
»·»·"unique_opens": 1,
»·»·"unsubscribe_drops": 0,
»·»·"unsubscribes": 0
»·}
```
Issues you can seem to apply multiple filters as each filter has its own endpoint
if you want stats around Geo-location/Device/clients (gmail ...)/Browser etc
You will have to use `GET https://api.sendgrid.com/v3/browsers/stats?`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment