List message automations
curl --request GET \
--url https://api.classet.ai/v2/message-automations \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.classet.ai/v2/message-automations"
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.classet.ai/v2/message-automations', 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.classet.ai/v2/message-automations",
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.classet.ai/v2/message-automations"
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.classet.ai/v2/message-automations")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.classet.ai/v2/message-automations")
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{
"data": [
{
"id": 12,
"title": "HVAC Candidate Outreach",
"description": "Standard 5-step drip for trade roles",
"is_default": true,
"agent_identity": null,
"agent_config_id": null,
"created_at": "2025-01-15T10:30:00Z",
"steps": [
{
"id": 101,
"name": "Initial Outreach",
"channel": "sms",
"message": "Hi {candidate.firstname}, Thanks for applying to the {job.title} role at {org.organization_name}...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
},
{
"id": 102,
"name": "First Follow-up",
"channel": "sms",
"message": "Hey {candidate.firstname}, sending you another quick reminder...",
"delay_hours": 3,
"enabled": true,
"order": 2,
"message_automation_id": 12
}
]
}
]
}
Message Automations
List Message Automations
List all message automations (drip sequences) for your organization, including their steps.
GET
/
v2
/
message-automations
List message automations
curl --request GET \
--url https://api.classet.ai/v2/message-automations \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.classet.ai/v2/message-automations"
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.classet.ai/v2/message-automations', 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.classet.ai/v2/message-automations",
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.classet.ai/v2/message-automations"
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.classet.ai/v2/message-automations")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.classet.ai/v2/message-automations")
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{
"data": [
{
"id": 12,
"title": "HVAC Candidate Outreach",
"description": "Standard 5-step drip for trade roles",
"is_default": true,
"agent_identity": null,
"agent_config_id": null,
"created_at": "2025-01-15T10:30:00Z",
"steps": [
{
"id": 101,
"name": "Initial Outreach",
"channel": "sms",
"message": "Hi {candidate.firstname}, Thanks for applying to the {job.title} role at {org.organization_name}...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
},
{
"id": 102,
"name": "First Follow-up",
"channel": "sms",
"message": "Hey {candidate.firstname}, sending you another quick reminder...",
"delay_hours": 3,
"enabled": true,
"order": 2,
"message_automation_id": 12
}
]
}
]
}
List all message automations (drip sequences) for your organization, including their steps.
Message automations define the sequence of SMS and email messages sent to candidates after they’re invited to interview. Each automation contains multiple steps with configurable timing, messaging, and channels.
Response
Returns an array of automations, each with its full step sequence.{
"data": [
{
"id": 12,
"title": "HVAC Candidate Outreach",
"description": "Standard 5-step drip for trade roles",
"is_default": true,
"agent_identity": null,
"agent_config_id": null,
"created_at": "2025-01-15T10:30:00Z",
"steps": [
{
"id": 101,
"name": "Initial Outreach",
"channel": "sms",
"message": "Hi {candidate.firstname}, Thanks for applying to the {job.title} role at {org.organization_name}...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
},
{
"id": 102,
"name": "First Follow-up",
"channel": "sms",
"message": "Hey {candidate.firstname}, sending you another quick reminder...",
"delay_hours": 3,
"enabled": true,
"order": 2,
"message_automation_id": 12
}
]
}
]
}
Steps are ordered by
order (ascending), then by channel (alphabetical). SMS and email steps with the same order number are sent together.