Skip to content

List emails

List emails, most recent first.

GET https://api.duta.indra.sh/v1/email?page=1&limit=20

Requires a full-access API key.

ParamTypeDefaultDescription
pagenumber1Page number, starts at 1.
limitnumber20Results per page, max 100.
Terminal window
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 });

200 OK

{
"emails": [
{ "id": "3f6c...", "subject": "Hello", "status": "delivered", "to": ["you@example.com"] }
],
"page": 1,
"limit": 20
}