Get Manual Campaign
curl --request GET \
--url https://api.aimtell.com/prod/campaign/{id} \
--header 'X-Authorization-Api-Key: <api-key>'import requests
url = "https://api.aimtell.com/prod/campaign/{id}"
headers = {"X-Authorization-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization-Api-Key': '<api-key>'}};
fetch('https://api.aimtell.com/prod/campaign/{id}', 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.aimtell.com/prod/campaign/{id}",
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-Authorization-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.aimtell.com/prod/campaign/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Authorization-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.aimtell.com/prod/campaign/{id}")
.header("X-Authorization-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aimtell.com/prod/campaign/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 259,
"uid": "76cedd11b19e",
"idSite": 179,
"name": "Sample Campaign #1",
"title": "Welcome to Aimtell!",
"body": "Got questions? Check out our knowledge base.",
"link": "https://kb.aimtell.com",
"customIcon": null,
"customImage": null,
"segments": "245",
"conversion_trigger": null,
"push_ttl": 0,
"auto_hide": null,
"collapse_key": null,
"schedule_date": "2024-12-11 12:12:00",
"ab_version": null,
"ab_linked_campaign": null,
"push_src": null,
"push_src_values": null,
"tz_delivery": 0,
"sent_date": null,
"createdAt": "2015-12-28 17:54:42",
"updatedAt": "2015-12-28 17:54:42",
"automation": null,
"automation_end": null,
"actions": null,
"status": 4,
"shared_id": null,
"clicked_a01": null,
"clicked_a02": null,
"schedule_pretty_time": "06:55 AM",
"schedule_pretty_date": "12/28/2015",
"campaign_results": {
"sent": 27,
"delivered": 27,
"bounced": 0,
"clicked": 2,
"clicked_a01": 0,
"clicked_a02": 0,
"conversions": 0
}
}{
"result": "error",
"message": "Invalid token.",
"error_code": 71831
}Manual Campaigns
Get Manual Campaign
Fetches a specific MANUAL Campaign
GET
/
prod
/
campaign
/
{id}
Get Manual Campaign
curl --request GET \
--url https://api.aimtell.com/prod/campaign/{id} \
--header 'X-Authorization-Api-Key: <api-key>'import requests
url = "https://api.aimtell.com/prod/campaign/{id}"
headers = {"X-Authorization-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization-Api-Key': '<api-key>'}};
fetch('https://api.aimtell.com/prod/campaign/{id}', 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.aimtell.com/prod/campaign/{id}",
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-Authorization-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.aimtell.com/prod/campaign/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Authorization-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.aimtell.com/prod/campaign/{id}")
.header("X-Authorization-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aimtell.com/prod/campaign/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 259,
"uid": "76cedd11b19e",
"idSite": 179,
"name": "Sample Campaign #1",
"title": "Welcome to Aimtell!",
"body": "Got questions? Check out our knowledge base.",
"link": "https://kb.aimtell.com",
"customIcon": null,
"customImage": null,
"segments": "245",
"conversion_trigger": null,
"push_ttl": 0,
"auto_hide": null,
"collapse_key": null,
"schedule_date": "2024-12-11 12:12:00",
"ab_version": null,
"ab_linked_campaign": null,
"push_src": null,
"push_src_values": null,
"tz_delivery": 0,
"sent_date": null,
"createdAt": "2015-12-28 17:54:42",
"updatedAt": "2015-12-28 17:54:42",
"automation": null,
"automation_end": null,
"actions": null,
"status": 4,
"shared_id": null,
"clicked_a01": null,
"clicked_a02": null,
"schedule_pretty_time": "06:55 AM",
"schedule_pretty_date": "12/28/2015",
"campaign_results": {
"sent": 27,
"delivered": 27,
"bounced": 0,
"clicked": 2,
"clicked_a01": 0,
"clicked_a02": 0,
"conversions": 0
}
}{
"result": "error",
"message": "Invalid token.",
"error_code": 71831
}⌘I

