JavaScript SDK: swarmhit.emailAccounts.emails.list(emailAccountId, params?)
The emails this mailbox sent with POST /email-accounts/{id}/emails, newest first. Campaign emails and inbox replies are not listed. A request that failed returned its error and was not logged.
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Path Parameters
id*string
Query Parameters
status?string
Value in
- "sent"
- "bounced"
- "failed"
limit?integer
Page size, 1–100.
Range
1 <= value <= 100Default
50offset?integer
Number of records to skip.
Range
0 <= valueDefault
0Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/email-accounts/string/emails"{ "data": [ { "id": "string", "accountId": "string", "status": "sent", "to": "string", "subject": "string", "messageId": "string", "chatId": "string", "leadId": "string", "error": "string", "sentAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ], "paging": { "limit": 0, "offset": 0 }}