curl -X POST https://api.classet.ai/v2/message-automations \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"title": "HVAC Candidate Outreach",
"description": "Standard drip for trade roles",
"is_default": true
}'
{
"data": {
"id": 12,
"title": "HVAC Candidate Outreach",
"description": "Standard 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...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
}
]
}
}
Message Automations
Create Message Automation
Create a new message automation (drip sequence). By default, includes the standard 5-step SMS + email sequence. Set include_default_steps to false to create an empty automation.
POST
/
v2
/
message-automations
curl -X POST https://api.classet.ai/v2/message-automations \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"title": "HVAC Candidate Outreach",
"description": "Standard drip for trade roles",
"is_default": true
}'
{
"data": {
"id": 12,
"title": "HVAC Candidate Outreach",
"description": "Standard 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...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
}
]
}
}
Create a new message automation (drip sequence). By default, the automation is created with the standard 5-step SMS + email sequence. Set
include_default_steps to false to create an empty automation you can populate manually.
curl -X POST https://api.classet.ai/v2/message-automations \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"title": "HVAC Candidate Outreach",
"description": "Standard drip for trade roles",
"is_default": true
}'
{
"data": {
"id": 12,
"title": "HVAC Candidate Outreach",
"description": "Standard 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...",
"delay_hours": 0,
"enabled": true,
"order": 1,
"message_automation_id": 12
}
]
}
}
Template variables
Messages support these variables:| Variable | Description |
|---|---|
{candidate.firstname} | Candidate’s first name |
{job.title} | Job title |
{org.organization_name} | Organization name |
Authorizations
Body
application/json
If true (default), creates the automation with a standard 5-step drip sequence for both SMS and email:
- Initial Outreach — sent immediately
- First Follow-up — 3 hours later
- Second Follow-up — 22 hours later
- Third Follow-up — 22 hours later
- Final Follow-up — 22 hours later
Set to false to create an empty automation.
Was this page helpful?