List emails
List emails, most recent first.
GET https://api.duta.indra.sh/v1/email?page=1&limit=20Requires a full-access API key.
Query parameters
Section titled “Query parameters”| Param | Type | Default | Description |
|---|---|---|---|
page | number | 1 | Page number, starts at 1. |
limit | number | 20 | Results per page, max 100. |
Example
Section titled “Example”curl "https://api.duta.indra.sh/v1/email?page=1&limit=20" \ -H "Authorization: Bearer duta_live_xxx"const { data } = await duta.emails.list({ page: 1, limit: 20 });Response
Section titled “Response”200 OK
{ "emails": [ { "id": "3f6c...", "subject": "Hello", "status": "delivered", "to": ["you@example.com"] } ], "page": 1, "limit": 20}