Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
curl --request GET \
--url https://api.maildiver.com/v1/workflows/{id}/emails \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.maildiver.com/v1/workflows/{id}/emails"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.maildiver.com/v1/workflows/{id}/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.maildiver.com/v1/workflows/{id}/emails",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.maildiver.com/v1/workflows/{id}/emails"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maildiver.com/v1/workflows/{id}/emails")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maildiver.com/v1/workflows/{id}/emails")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"emails": [
{
"email_id": "0195c9e3-5067-741d-be87-a4f75ef93372",
"subject": "Welcome to Our Platform",
"recipient": "user@example.com",
"created_at": 1742843423033,
"updated_at": 1742843424100,
"events": [
{
"status": "sent",
"timestamp": 1742843423033
},
{
"status": "delivered",
"timestamp": 1742843424147
}
],
"workflow_id": "0199f234-d327-7cd8-9dc5-4fd8e5e249df",
"execution_id": "0195c9e3-5067-741d-be87-a4f75ef93373"
},
{
"email_id": "0195c413-3fe1-779d-804e-f5f9bd8cd523",
"subject": "Getting Started Guide",
"recipient": "customer@example.com",
"created_at": 1742751354368,
"updated_at": 1742751355200,
"events": [
{
"status": "sent",
"timestamp": 1742751354368
},
{
"status": "delivered",
"timestamp": 1742751354893
},
{
"status": "opened",
"timestamp": 1742751400123
}
],
"workflow_id": "0199f234-d327-7cd8-9dc5-4fd8e5e249df",
"execution_id": "0195c413-3fe1-779d-804e-f5f9bd8cd524"
}
],
"count": 2,
"cursor": null
}{
"message": "<string>"
}{
"error": "Failed to get workflow emails",
"details": "Error details"
}Endpoint: v1/workflows/{id}/emails
List all emails sent by a specific workflow across all executions. Returns up to 50 emails per page.
curl --request GET \
--url https://api.maildiver.com/v1/workflows/{id}/emails \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.maildiver.com/v1/workflows/{id}/emails"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.maildiver.com/v1/workflows/{id}/emails', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.maildiver.com/v1/workflows/{id}/emails",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.maildiver.com/v1/workflows/{id}/emails"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maildiver.com/v1/workflows/{id}/emails")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maildiver.com/v1/workflows/{id}/emails")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"emails": [
{
"email_id": "0195c9e3-5067-741d-be87-a4f75ef93372",
"subject": "Welcome to Our Platform",
"recipient": "user@example.com",
"created_at": 1742843423033,
"updated_at": 1742843424100,
"events": [
{
"status": "sent",
"timestamp": 1742843423033
},
{
"status": "delivered",
"timestamp": 1742843424147
}
],
"workflow_id": "0199f234-d327-7cd8-9dc5-4fd8e5e249df",
"execution_id": "0195c9e3-5067-741d-be87-a4f75ef93373"
},
{
"email_id": "0195c413-3fe1-779d-804e-f5f9bd8cd523",
"subject": "Getting Started Guide",
"recipient": "customer@example.com",
"created_at": 1742751354368,
"updated_at": 1742751355200,
"events": [
{
"status": "sent",
"timestamp": 1742751354368
},
{
"status": "delivered",
"timestamp": 1742751354893
},
{
"status": "opened",
"timestamp": 1742751400123
}
],
"workflow_id": "0199f234-d327-7cd8-9dc5-4fd8e5e249df",
"execution_id": "0195c413-3fe1-779d-804e-f5f9bd8cd524"
}
],
"count": 2,
"cursor": null
}{
"message": "<string>"
}{
"error": "Failed to get workflow emails",
"details": "Error details"
}API key with format "Bearer {your-api-key}"
Unique identifier of the workflow
Pagination cursor for fetching the next page of results. This is a base64-encoded string returned from the previous response.
OK
Was this page helpful?