Leads, human handoff and ratings
Plan: LUMA Elevate or Enterprise (API key). Credits: free.
To receive these as they happen, use webhooks (Lead Capture, Human Handoff, Session End).
Leads
An agent captures leads with its lead form (configured in the app, agent, then Lead Capture).
GET /v1/ai-agent/leads/{projectId}/{agentId}
| Query parameter | Description |
|---|---|
sessionId | Only the leads of one chat session |
nextPageToken | Page token from the previous answer, to read the next page |
curl 'https://api.itechintl.com/v1/ai-agent/leads/PROJECT_ID/AGENT_ID' \
--header 'Authorization: Bearer lm_live_YOUR_API_KEY'
Answer: a table, so you can export it as it is.
{
"message": "Success",
"data": {
"report": {
"columns": ["Name", "Email"],
"rows": [
{ "id": "LEAD_ID", "created_at": "2026-11-25T10:15:00Z", "source": "web", "page_url": "https://example.com/pricing",
"ip_address": "203.0.113.10", "lead_data": [ { "field_name": "Name", "field_type": "text", "field_value": "Customer 1" } ] }
]
}
}
}
Human handoff
When a visitor asks for a person, or the agent decides it cannot help, the agent creates a handoff with the visitor's contact details and a summary of the chat.
List handoffs
GET /v1/ai-agent/handoff/{projectId}/{agentId}
| Query parameter | Description |
|---|---|
status | Notified or Closed |
sessionId | Only one chat session |
searchText | Search in name, email or phone |
pageNumber, pageSize | Paging (default 1 and 20) |
Answer: data.handoffs[] (each with id, chatbot_id, session_id, customer_name, customer_email,
contact_method, handoff_reason, session_summary, status, created_at, updated_at), plus total_count,
page_number and page_size.
Get one handoff
GET /v1/ai-agent/handoff/{projectId}/{agentId}/{handoffId}
Update a handoff
PUT /v1/ai-agent/handoff/{projectId}/{agentId}/{handoffId}
curl --request PUT 'https://api.itechintl.com/v1/ai-agent/handoff/PROJECT_ID/AGENT_ID/HANDOFF_ID' \
--header 'Authorization: Bearer lm_live_YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{ "status": "Closed" }'
| Field | Description |
|---|---|
status | Notified (new, the team was told) or Closed (handled) |
customer_name, customer_email, customer_phone, contact_method | Correct the contact details |
Pause the AI while your team replies
On WhatsApp, an agent can stop answering while a person handles the chat. The pause length is set per agent in the app (Human Handoff settings). Replies sent from the LUMA Inbox pause the AI automatically.
Chat ratings
Visitors can rate a chat at the end (when ratings are enabled on the agent).
GET /v1/ai-agent/chatbot/rating/{projectId}/{agentId}
| Query parameter | Description |
|---|---|
sessionId | One session only |
startDateTime, endDateTime | Period, in UTC (ISO 8601) |
page, limit | Paging (default 1 and 20) |
Answer:
{
"message": "Success",
"data": {
"summary": {
"total_ratings": 42, "average_csat": 4.5,
"score_distribution": { "1_star": 1, "2_star": 1, "3_star": 3, "4_star": 10, "5_star": 27 },
"total_with_feedback": 12, "total_without_feedback": 30
},
"ratings": [ { "session_id": "SESSION_ID", "chatbot_id": "AGENT_ID", "project_id": 12, "csat_score": 5, "feedback": "Very helpful", "created_at": "2026-11-25T10:20:00Z" } ],
"pagination": { "page": 1, "limit": 20, "total_count": 42, "total_pages": 3 }
}
}