cURL
curl --request GET \ --url https://www.getinboxzero.com/api/v1/group/{groupId}/emails \ --header 'API-Key: <api-key>'
{ "messages": [ { "id": "<string>", "threadId": "<string>", "labelIds": [ "<string>" ], "snippet": "<string>", "historyId": "<string>", "attachments": [ {} ], "inline": [ {} ], "headers": {}, "textPlain": "<string>", "textHtml": "<string>", "matchingGroupItem": { "id": "<string>", "type": "FROM", "value": "<string>" } } ], "nextPageToken": "<string>" }
Get learned pattern emails
You can find the group id by going to https://www.getinboxzero.com/automation?tab=groups, clicking Matching Emails, and then copying the id from the URL.
https://www.getinboxzero.com/automation?tab=groups
Matching Emails
Successful response
The response is of type object.
object