curl
curl "https://api.deliveryman.ai/api/v1/campaign/?campaign_uid=cmp_4b1f7a92c3d84e05" \
-H "X-Api-Key: YOUR_API_KEY"import requests
url = "https://api.deliveryman.ai/api/v1/campaign/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.deliveryman.ai/api/v1/campaign/', 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.deliveryman.ai/api/v1/campaign/",
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: <api-key>"
],
]);
$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.deliveryman.ai/api/v1/campaign/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
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.deliveryman.ai/api/v1/campaign/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryman.ai/api/v1/campaign/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"uid": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"workspace_id": 123,
"settings": {
"name": "<string>",
"skip_days": [
"Monday"
],
"custom_unsub_text": "<string>",
"custom_unsub_texts": [
"<string>"
],
"sending_domains": [
123
],
"reply_to_address": "<string>",
"daily_email_limit": 1073741823,
"single_subject": true,
"scheduling_strategy": "testing",
"from_time": "<string>",
"to_time": "<string>",
"time_zone": "<string>",
"add_unsub_link": true,
"unsub_link_type": "<string>",
"one_click_unsubscribe_header": true,
"click_tracking_enabled": true,
"open_tracking_enabled": true,
"skip_dangerous_emails": true,
"skip_disposable_emails": true,
"skip_catchall_emails": true,
"skip_full_inbox_emails": true,
"skip_invalid_emails": true,
"skip_unverifiable_emails": true,
"forward_negative_emails": true,
"forward_netural_emails": true
},
"selected_contact_lists": [
{
"id": 123,
"name": "<string>"
}
],
"scheduled_start_datetime": "2023-11-07T05:31:56Z",
"status": "creating",
"bounces": 1073741823,
"campaign_paused": true,
"campaign_paused_on": "2023-11-07T05:31:56Z",
"is_generating_schedules": true,
"is_deleting_schedules": true,
"archived": true,
"is_campaign_bounce_blocked": true,
"started_running_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z"
}{
"message": "<string>"
}{
"message": "<string>"
}Campaigns
Retrieve Campaign
Returns details for a single campaign. Its settings object can be edited and sent back to Update Campaign.
GET
/
api
/
v1
/
campaign
/
curl
curl "https://api.deliveryman.ai/api/v1/campaign/?campaign_uid=cmp_4b1f7a92c3d84e05" \
-H "X-Api-Key: YOUR_API_KEY"import requests
url = "https://api.deliveryman.ai/api/v1/campaign/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.deliveryman.ai/api/v1/campaign/', 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.deliveryman.ai/api/v1/campaign/",
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: <api-key>"
],
]);
$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.deliveryman.ai/api/v1/campaign/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
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.deliveryman.ai/api/v1/campaign/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryman.ai/api/v1/campaign/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"uid": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"workspace_id": 123,
"settings": {
"name": "<string>",
"skip_days": [
"Monday"
],
"custom_unsub_text": "<string>",
"custom_unsub_texts": [
"<string>"
],
"sending_domains": [
123
],
"reply_to_address": "<string>",
"daily_email_limit": 1073741823,
"single_subject": true,
"scheduling_strategy": "testing",
"from_time": "<string>",
"to_time": "<string>",
"time_zone": "<string>",
"add_unsub_link": true,
"unsub_link_type": "<string>",
"one_click_unsubscribe_header": true,
"click_tracking_enabled": true,
"open_tracking_enabled": true,
"skip_dangerous_emails": true,
"skip_disposable_emails": true,
"skip_catchall_emails": true,
"skip_full_inbox_emails": true,
"skip_invalid_emails": true,
"skip_unverifiable_emails": true,
"forward_negative_emails": true,
"forward_netural_emails": true
},
"selected_contact_lists": [
{
"id": 123,
"name": "<string>"
}
],
"scheduled_start_datetime": "2023-11-07T05:31:56Z",
"status": "creating",
"bounces": 1073741823,
"campaign_paused": true,
"campaign_paused_on": "2023-11-07T05:31:56Z",
"is_generating_schedules": true,
"is_deleting_schedules": true,
"archived": true,
"is_campaign_bounce_blocked": true,
"started_running_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"cancelled_at": "2023-11-07T05:31:56Z"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Response
Success