Page through a domain's sent email
const url = 'https://digize.com/api/v1/email-sending/domains/example/activity/page?period=30m';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://digize.com/api/v1/email-sending/domains/example/activity/page?period=30m' \ --header 'x-api-key: <x-api-key>'A page of what a sending domain sent, one row per email and recipient, the newest first, over the last 30 minutes to 30 days (period, 30d unless it says). Narrow it by what became of each email (status), what sent it (via) or words in the subject, sender or recipient. Pass nextCursor back as cursor for the next page.
Needs the sites:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”What sent them, as type:name: app:conversation, app:order-receipt, api:<the key’s name>, worker:<the worker’s name>, or app: and worker: for none.
What sent them, as type:name: app:conversation, app:order-receipt, api:<the key’s name>, worker:<the worker’s name>, or app: and worker: for none.
The nextCursor of the page before. Leave it out for the first page.
The nextCursor of the page before. Leave it out for the first page.
Rows on the page: 50 unless it says, 100 at most.
Rows on the page: 50 unless it says, 100 at most.
Responses
Section titled “Responses”Done
object
object
object
Pass it as cursor for the next page; null on the last.
Example
{ "rows": [ { "via": { "type": "app" }, "status": "sent", "bounce": "hard" } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}