Get Sendflow Delivery Report
curl --request GET \
--url https://api-ai.zixflow.com/api/data/sendflow/v1/delivery-report \
--header 'x-api-key: <x-api-key>' \
--header 'x-workspace-id: <x-workspace-id>'import requests
url = "https://api-ai.zixflow.com/api/data/sendflow/v1/delivery-report"
headers = {
"x-api-key": "<x-api-key>",
"x-workspace-id": "<x-workspace-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-workspace-id': '<x-workspace-id>'}
};
fetch('https://api-ai.zixflow.com/api/data/sendflow/v1/delivery-report', 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-ai.zixflow.com/api/data/sendflow/v1/delivery-report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>",
"x-workspace-id: <x-workspace-id>"
],
]);
$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-ai.zixflow.com/api/data/sendflow/v1/delivery-report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-workspace-id", "<x-workspace-id>")
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-ai.zixflow.com/api/data/sendflow/v1/delivery-report")
.header("x-api-key", "<x-api-key>")
.header("x-workspace-id", "<x-workspace-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-ai.zixflow.com/api/data/sendflow/v1/delivery-report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-workspace-id"] = '<x-workspace-id>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Sendflow delivery report retrieved successfully",
"data": {
"request_id": "8cf12de6-0504-41f9-b576-cbdb20b3e275",
"execution_id": "exec_123456789",
"execution_status": "Completed",
"delivery_status": "delivered",
"statusAt": "2024-01-15T10:30:00Z",
"email": "user@example.com",
"phone": "919876543210",
"remark": "Sendflow executed successfully",
"workspace_id": "workspace_123"
}
}
{
"success": false,
"message": "Invalid request_id parameter"
}
{
"success": false,
"message": "Unauthorized. Please check your API key and workspace ID."
}
{
"success": false,
"message": "Sendflow delivery report not found for the given request_id"
}
{
"success": false,
"message": "Internal server error. Please try again later."
}
Sendflow
Get Sendflow Delivery Report
Retrieves a single Sendflow delivery report by request_id. Includes execution_status (run) and delivery_status (message DLR).
GET
/
api
/
data
/
sendflow
/
v1
/
delivery-report
Get Sendflow Delivery Report
curl --request GET \
--url https://api-ai.zixflow.com/api/data/sendflow/v1/delivery-report \
--header 'x-api-key: <x-api-key>' \
--header 'x-workspace-id: <x-workspace-id>'import requests
url = "https://api-ai.zixflow.com/api/data/sendflow/v1/delivery-report"
headers = {
"x-api-key": "<x-api-key>",
"x-workspace-id": "<x-workspace-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-workspace-id': '<x-workspace-id>'}
};
fetch('https://api-ai.zixflow.com/api/data/sendflow/v1/delivery-report', 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-ai.zixflow.com/api/data/sendflow/v1/delivery-report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>",
"x-workspace-id: <x-workspace-id>"
],
]);
$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-ai.zixflow.com/api/data/sendflow/v1/delivery-report"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-workspace-id", "<x-workspace-id>")
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-ai.zixflow.com/api/data/sendflow/v1/delivery-report")
.header("x-api-key", "<x-api-key>")
.header("x-workspace-id", "<x-workspace-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-ai.zixflow.com/api/data/sendflow/v1/delivery-report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-workspace-id"] = '<x-workspace-id>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Sendflow delivery report retrieved successfully",
"data": {
"request_id": "8cf12de6-0504-41f9-b576-cbdb20b3e275",
"execution_id": "exec_123456789",
"execution_status": "Completed",
"delivery_status": "delivered",
"statusAt": "2024-01-15T10:30:00Z",
"email": "user@example.com",
"phone": "919876543210",
"remark": "Sendflow executed successfully",
"workspace_id": "workspace_123"
}
}
{
"success": false,
"message": "Invalid request_id parameter"
}
{
"success": false,
"message": "Unauthorized. Please check your API key and workspace ID."
}
{
"success": false,
"message": "Sendflow delivery report not found for the given request_id"
}
{
"success": false,
"message": "Internal server error. Please try again later."
}
Description
This endpoint retrieves a single Sendflow delivery report byrequest_id. The response includes execution_status (workflow run status) and delivery_status (message delivery report). Use the request ID returned when you triggered the Sendflow.
Headers
Query Parameters
The unique request ID that was returned when the Sendflow was triggered. This ID is used to track the execution status of the workflow.
Response
{
"success": true,
"message": "Sendflow delivery report retrieved successfully",
"data": {
"request_id": "8cf12de6-0504-41f9-b576-cbdb20b3e275",
"execution_id": "exec_123456789",
"execution_status": "Completed",
"delivery_status": "delivered",
"statusAt": "2024-01-15T10:30:00Z",
"email": "user@example.com",
"phone": "919876543210",
"remark": "Sendflow executed successfully",
"workspace_id": "workspace_123"
}
}
{
"success": false,
"message": "Invalid request_id parameter"
}
{
"success": false,
"message": "Unauthorized. Please check your API key and workspace ID."
}
{
"success": false,
"message": "Sendflow delivery report not found for the given request_id"
}
{
"success": false,
"message": "Internal server error. Please try again later."
}