Get a campaign
curl --request GET \
--url https://api.vonative.com/v1/campaigns/{campaign_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vonative.com/v1/campaigns/{campaign_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vonative.com/v1/campaigns/{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.vonative.com/v1/campaigns/{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 => [
"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.vonative.com/v1/campaigns/{campaign_id}"
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.vonative.com/v1/campaigns/{campaign_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/campaigns/{campaign_id}")
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{
"success": true,
"message": "success",
"data": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "<string>",
"phone_number_id": "<string>",
"total_cost": "<string>",
"organization_id": "<string>",
"created_by": "<string>",
"ended_reason": "<string>",
"vapi_id": "<string>",
"assistant_id": "<string>",
"vapi_assistant_id": "<string>",
"workflow_id": "<string>",
"customers": [],
"schedule_plan": {},
"calls_counter_scheduled": 0,
"calls_counter_queued": 0,
"calls_counter_in_progress": 0,
"calls_counter_ended_voicemail": 0,
"calls_counter_ended": 0,
"max_concurrent_calls": 5,
"retry_attempts": 3,
"retry_delay_minutes": 5,
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Campaigns
Get a campaign
Get specific campaign details.
Required permission: campaigns:read
GET
/
v1
/
campaigns
/
{campaign_id}
Get a campaign
curl --request GET \
--url https://api.vonative.com/v1/campaigns/{campaign_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vonative.com/v1/campaigns/{campaign_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vonative.com/v1/campaigns/{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.vonative.com/v1/campaigns/{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 => [
"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.vonative.com/v1/campaigns/{campaign_id}"
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.vonative.com/v1/campaigns/{campaign_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/campaigns/{campaign_id}")
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{
"success": true,
"message": "success",
"data": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "<string>",
"phone_number_id": "<string>",
"total_cost": "<string>",
"organization_id": "<string>",
"created_by": "<string>",
"ended_reason": "<string>",
"vapi_id": "<string>",
"assistant_id": "<string>",
"vapi_assistant_id": "<string>",
"workflow_id": "<string>",
"customers": [],
"schedule_plan": {},
"calls_counter_scheduled": 0,
"calls_counter_queued": 0,
"calls_counter_in_progress": 0,
"calls_counter_ended_voicemail": 0,
"calls_counter_ended": 0,
"max_concurrent_calls": 5,
"retry_attempts": 3,
"retry_delay_minutes": 5,
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
An API key from Dashboard → Developers → API keys.
Path Parameters
Campaign UUID
Response
Successful Response
Campaign response schema with UUID-based identification.
Inherits from UUIDResponseBase which maps uuid → id and excludes integer PK. Integer FK fields (organization_id, created_by) are resolved to UUIDs from loaded relationships. String-typed Vapi IDs (assistant_id, phone_number_id, workflow_id) are preserved unchanged.
Show child attributes
Show child attributes
⌘I

