Get a message automation
curl --request GET \
--url https://api.classet.ai/v2/message-automations/{automationId} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.classet.ai/v2/message-automations/{automationId}"
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/{automationId}', 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/{automationId}",
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/{automationId}"
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/{automationId}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.classet.ai/v2/message-automations/{automationId}")
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...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
}
]
}
}
Message Automations
Get Message Automation
Get a single message automation with all its steps.
GET
/
v2
/
message-automations
/
{automationId}
Get a message automation
curl --request GET \
--url https://api.classet.ai/v2/message-automations/{automationId} \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.classet.ai/v2/message-automations/{automationId}"
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/{automationId}', 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/{automationId}",
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/{automationId}"
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/{automationId}")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.classet.ai/v2/message-automations/{automationId}")
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...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
}
]
}
}
Retrieve a single message automation with all its steps.
{
"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...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
}
]
}
}