Update SMS campaign
curl --request PUT \
--url http://localhost:8787/api/v1/sms-agent/campaigns/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "http://localhost:8787/api/v1/sms-agent/campaigns/{id}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:8787/api/v1/sms-agent/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));SMS Campaigns
Update SMS campaign
Update SMS campaign settings and replace message templates
PUT
/
sms-agent
/
campaigns
/
{id}
Update SMS campaign
curl --request PUT \
--url http://localhost:8787/api/v1/sms-agent/campaigns/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "http://localhost:8787/api/v1/sms-agent/campaigns/{id}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:8787/api/v1/sms-agent/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Updates configuration fields for an SMS campaign. If
templates array is provided, existing templates are replaced wholesale.
Path parameters
string
required
The unique UUID of the SMS campaign.
Body parameters
string
Updated campaign name.
string
Updated sender phone number or sender ID.
string
Updated SMS provider (e.g.
TWILIO, PLIVO).boolean
Enable or disable the campaign.
object[]
curl -X PUT https://api.agentic-os.com/api/v1/sms-agent/campaigns/66666666-6666-6666-6666-666666666666 \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"isActive": true,
"templates": [
{
"callStatus": "ANSWERED",
"messageBody": "Hi {{name}}, here is your follow-up summary: https://agentic-os.com/summary"
},
{
"callStatus": "UNANSWERED",
"messageBody": "Hi {{name}}, we missed you! Call us back at +15550199 anytime."
}
]
}'
import requests
response = requests.put(
"https://api.agentic-os.com/api/v1/sms-agent/campaigns/66666666-6666-6666-6666-666666666666",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={
"isActive": True,
"templates": [
{
"callStatus": "ANSWERED",
"messageBody": "Hi {{name}}, here is your follow-up summary: https://agentic-os.com/summary",
},
{
"callStatus": "UNANSWERED",
"messageBody": "Hi {{name}}, we missed you! Call us back at +15550199 anytime.",
},
],
},
)
print(response.json())
const response = await fetch(
"https://api.agentic-os.com/api/v1/sms-agent/campaigns/66666666-6666-6666-6666-666666666666",
{
method: "PUT",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
isActive: true,
templates: [
{
callStatus: "ANSWERED",
messageBody: "Hi {{name}}, here is your follow-up summary: https://agentic-os.com/summary",
},
{
callStatus: "UNANSWERED",
messageBody: "Hi {{name}}, we missed you! Call us back at +15550199 anytime.",
},
],
}),
},
);
const data = await response.json();
console.log(data);
Response
{
"id": "66666666-6666-6666-6666-666666666666",
"tenantId": "990e8400-e29b-41d4-a716-446655440000",
"agentId": "11111111-1111-1111-1111-111111111111",
"name": "Post-Call SMS Follow-up",
"senderNumber": "+15550199",
"senderProvider": "TWILIO",
"isActive": true,
"templates": [
{
"id": "sms_tpl_3",
"callStatus": "ANSWERED",
"messageBody": "Hi {{name}}, here is your follow-up summary: https://agentic-os.com/summary"
},
{
"id": "sms_tpl_4",
"callStatus": "UNANSWERED",
"messageBody": "Hi {{name}}, we missed you! Call us back at +15550199 anytime."
}
],
"createdAt": "2026-06-01T12:00:00.000Z",
"updatedAt": "2026-06-01T12:30:00.000Z"
}
⌘I

