Agents
List agents
GET /agents
[{ "id": "clx...", "name": "Support agent" }]
Ask an agent
Send a message as a visitor and get the agent's answer. It runs the same pipeline as the widget, including handover, and the conversation appears in your inbox with channel "api".
POST /agents/:agentId/messages
| Field | Type | Notes |
|---|---|---|
message | string | Required, up to 4000 characters. |
conversationId | string | Optional. Pass the id from the previous reply to continue the conversation. |
name, email | string | Optional, first message only. They become the contact. |
curl -X POST https://app.askmomo.eu/api/v1/agents/AGENT_ID/messages \
-H "Authorization: Bearer mk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"message":"What are your opening hours?","email":"ada@example.com"}'
{ "conversationId": "clx...", "reply": "We are open Monday to Friday, 9 to 17.", "handoff": false }
replyisnullwhen a person owns the conversation. Your team answers from the inbox.handoffistruewhen this message handed the conversation to your team.