Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Every path is under /v0 and scoped to an inbox: messages and threads need the inbox_id returned by the inbox list.
- Lists page by token: pass next_page_token from a response back as page_token.
- Free plan: 3 inboxes and 100 emails a day. A 429 carries Retry-After.
Endpoints
List inboxes
List messages in an inbox
- Spam, blocked, unauthenticated and trashed messages are left out unless the include_ flags are set.
Get a message
- extracted_text and extracted_html hold only the new content, without quoted earlier replies; text and html are the full bodies.