List Emails API
curl --location 'https://api.nomsa.gov.kh/v1/transactional/email' \
--header 'Authorization: Bearer {{apikey}}' \Sample Response
{
"has_more": true,
"data": [
{
"id": "95",
"from": "NomsaSupportTeam <[email protected]>",
"recipient": "[email protected]",
"params": {
"body": "<p>Hello <b>there</b></p>",
"from": "NomsaSupportTeam <[email protected]>",
"subject": "Test two attachments"
},
"attachments_metadata": [
{
"hash": "d879061289e2ac51ef64bba9fcf3a3b1",
"fileName": "nomsa_sample1.csv",
"fileSize": 62
},
{
"hash": "e2834551a0349c3473387d0f7d17d22f",
"fileName": "nomsa_sample2.csv",
"fileSize": 38
}
],
"status": "OPENED",
"error_code": null,
"error_sub_type": null,
"accepted_at": "2023-10-05T01:37:39.182Z",
"sent_at": "2023-10-05T01:37:39.243Z",
"delivered_at": "2023-10-05T01:37:40.771Z",
"opened_at": "2023-10-05T01:37:54.786Z",
"created_at": "2023-10-05T01:37:38.819Z",
"updated_at": "2023-10-05T01:37:54.908Z",
"classification": null,
"tag": null,
"cc": [],
"bcc": []
},
{
"id": "94",
"from": "NomsaSupportTeam <[email protected]>",
"recipient": "[email protected]",
"params": {
"body": "<p>Hello <b>there</b></p>",
"from": "NomsaSupportTeam <[email protected]>",
"subject": "Test Attachments email"
},
"attachments_metadata": [
{
"hash": "e2834551a0349c3473387d0f7d17d22f",
"fileName": "nomsa_sample1.csv",
"fileSize": 38
}
],
"status": "OPENED",
"error_code": null,
"error_sub_type": null,
"accepted_at": "2023-10-05T01:34:27.818Z",
"sent_at": "2023-10-05T01:34:27.888Z",
"delivered_at": "2023-10-05T01:34:29.487Z",
"opened_at": "2023-10-05T01:34:35.743Z",
"created_at": "2023-10-05T01:34:27.463Z",
"updated_at": "2023-10-05T01:34:35.827Z",
"classification": null,
"tag": null,
"cc": [],
"bcc": []
},
]
}Response Format
Supported Query Parameters
Limit
Offset
Filtering
Sorting
Excluding params Field from Response
params Field from ResponseExample Queries
GET /transactional/email
GET /transactional/emailGET /transactional/email?limit=20&offset=10
GET /transactional/email?limit=20&offset=10GET /transactional/email?status=DELIVERED
GET /transactional/email?status=DELIVEREDGET /transactional/email?created_at[gt]=2023-05-10T03:03:54.163Z
GET /transactional/email?created_at[gt]=2023-05-10T03:03:54.163ZGET /transactional/email?created_at[gt]=2023-05-03&created_at[lt]=2023-05-10
GET /transactional/email?created_at[gt]=2023-05-03&created_at[lt]=2023-05-10GET /transactional/email?sort_by=+created_at&created_at[gte]=2022-11-01&status=delivered&limit=48
GET /transactional/email?sort_by=+created_at&created_at[gte]=2022-11-01&status=delivered&limit=48Last updated