Prefill an AI brief from a Quick Prompt
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt_id": "reengage-inactive"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill"
payload = { "prompt_id": "reengage-inactive" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt_id: 'reengage-inactive'})
};
fetch('https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill', 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.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt_id' => 'reengage-inactive'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill"
payload := strings.NewReader("{\n \"prompt_id\": \"reengage-inactive\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt_id\": \"reengage-inactive\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt_id\": \"reengage-inactive\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"prompt_id": "<string>",
"contacts": [
{
"id": "<string>",
"display_name": "<string>",
"phone": "<string>",
"email": "<string>"
}
],
"suggested_message": "<string>",
"suggested_channel": "<string>",
"source_campaign_id": "<string>",
"source_campaign_name": "<string>",
"audience_size": 123
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Campaigns
Prefill an AI brief from a Quick Prompt
Resolves the contextual seed data behind an Outbound Studio Quick Prompt card — re-engage inactive contacts, resend to failed deliveries, or reuse a winning variant. Post the prompt_id and get back a suggested audience (matching contacts and their count), a pre-filled draft message, and the suggested channel, so the brief composer opens with prompt-specific context already in place. Read-only; it does not create or send anything.
POST
/
api
/
v1
/
campaigns
/
ai-brief
/
prefill
Prefill an AI brief from a Quick Prompt
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt_id": "reengage-inactive"
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill"
payload = { "prompt_id": "reengage-inactive" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt_id: 'reengage-inactive'})
};
fetch('https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill', 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.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt_id' => 'reengage-inactive'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill"
payload := strings.NewReader("{\n \"prompt_id\": \"reengage-inactive\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt_id\": \"reengage-inactive\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/campaigns/ai-brief/prefill")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt_id\": \"reengage-inactive\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"prompt_id": "<string>",
"contacts": [
{
"id": "<string>",
"display_name": "<string>",
"phone": "<string>",
"email": "<string>"
}
],
"suggested_message": "<string>",
"suggested_channel": "<string>",
"source_campaign_id": "<string>",
"source_campaign_name": "<string>",
"audience_size": 123
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Body
application/json
Which Quick Prompt card the operator clicked.
Available options:
resend-failed, resend-non-deliverers, winning-variant, reengage-inactive ⌘I