curl -X GET "https://api.classet.ai/v2/candidates/Xk3pQ9vT2mLr8bNc4Hd1s/messages" \
-H "X-API-KEY: your-api-key"
{
"data": [
{
"id": 918271,
"direction": "outbound",
"sender_type": "ai_recruiter",
"automated": true,
"text": "Hi John, we'd like to schedule a phone screen for the Electrician Apprentice position. Are you available this week?",
"timestamp": "2026-04-01T16:00:00.000Z",
"message_type": "sms",
"delivery_status": "delivered"
},
{
"id": 918272,
"direction": "inbound",
"sender_type": "candidate",
"automated": false,
"text": "Yes, I'm available any day after 2pm.",
"timestamp": "2026-04-01T16:15:00.000Z",
"message_type": "sms",
"delivery_status": null
},
{
"id": 918273,
"direction": "outbound",
"sender_type": "user",
"automated": false,
"text": "Great! We've sent you a link to complete your AI phone screen at your convenience.",
"timestamp": "2026-04-01T16:20:00.000Z",
"message_type": "sms",
"delivery_status": "delivered"
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 3
}
}
Candidates
Get Messages
Retrieve SMS, email, and other messages for a candidate.
GET
/
v2
/
candidates
/
{candidateId}
/
messages
curl -X GET "https://api.classet.ai/v2/candidates/Xk3pQ9vT2mLr8bNc4Hd1s/messages" \
-H "X-API-KEY: your-api-key"
{
"data": [
{
"id": 918271,
"direction": "outbound",
"sender_type": "ai_recruiter",
"automated": true,
"text": "Hi John, we'd like to schedule a phone screen for the Electrician Apprentice position. Are you available this week?",
"timestamp": "2026-04-01T16:00:00.000Z",
"message_type": "sms",
"delivery_status": "delivered"
},
{
"id": 918272,
"direction": "inbound",
"sender_type": "candidate",
"automated": false,
"text": "Yes, I'm available any day after 2pm.",
"timestamp": "2026-04-01T16:15:00.000Z",
"message_type": "sms",
"delivery_status": null
},
{
"id": 918273,
"direction": "outbound",
"sender_type": "user",
"automated": false,
"text": "Great! We've sent you a link to complete your AI phone screen at your convenience.",
"timestamp": "2026-04-01T16:20:00.000Z",
"message_type": "sms",
"delivery_status": "delivered"
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 3
}
}
Retrieve messages exchanged with a candidate over SMS, email, WhatsApp and LinkedIn. Results are paginated:
limit defaults to 50 (max 100). Messages are oldest first by default; pass order=desc for newest first. Filter by time with start_date and end_date (ISO-8601).
Each message carries a stable id to dedupe on re-sync. sender_type says who sent it: user is a recruiter in the Classet inbox, ai_recruiter is the AI recruiter, auto is a message automation, and candidate is the candidate. smart_connect appears only on historical messages. automated is true when no person typed the message. delivery_status is the carrier or provider delivery state, and is null while a message is in flight or when the provider reported nothing.
curl -X GET "https://api.classet.ai/v2/candidates/Xk3pQ9vT2mLr8bNc4Hd1s/messages" \
-H "X-API-KEY: your-api-key"
{
"data": [
{
"id": 918271,
"direction": "outbound",
"sender_type": "ai_recruiter",
"automated": true,
"text": "Hi John, we'd like to schedule a phone screen for the Electrician Apprentice position. Are you available this week?",
"timestamp": "2026-04-01T16:00:00.000Z",
"message_type": "sms",
"delivery_status": "delivered"
},
{
"id": 918272,
"direction": "inbound",
"sender_type": "candidate",
"automated": false,
"text": "Yes, I'm available any day after 2pm.",
"timestamp": "2026-04-01T16:15:00.000Z",
"message_type": "sms",
"delivery_status": null
},
{
"id": 918273,
"direction": "outbound",
"sender_type": "user",
"automated": false,
"text": "Great! We've sent you a link to complete your AI phone screen at your convenience.",
"timestamp": "2026-04-01T16:20:00.000Z",
"message_type": "sms",
"delivery_status": "delivered"
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 3
}
}
Authorizations
Query Parameters
Was this page helpful?