API referenceTickets
List ticket teams
Teams tickets are routed to (`teamId`), sorted by name.
GET
Teams tickets are routed to (teamId), sorted by name.
header
X-API-Key<token>Create in the console: Settings → API & webhooks.
OK
application/json- response
success*SuccessAlways true on a 2xx response.
teams*array<>[key: string]?anycurl -X GET 'https://api.callmitra.ai/api/v1/tickets/teams'Example Response
{ "success": true, "teams": [ { "assignmentMode": "round_robin", "id": "e7a1c3d5-9b2f-4d68-8a0c-2e4f6a8b0c1d", "isDefault": true, "members": [ { "available": true, "email": "[email protected]", "isLead": true, "name": "Priya Nair", "userId": "c2d4e6f8-1a3b-4c5d-8e7f-9a0b1c2d3e4f" } ], "name": "Customer care" } ]}List tickets GET
Newest change first by default. Filter by status, type, priority, lead, category, team or tag.
Reply to the customer POST
Sends a reply to the ticket's customer on WhatsApp. Within 24 hours of the customer's last message send `text`; after that send `templateEvent` to use the approved template set up for that ticket event. The reply is queued and recorded on the ticket. Retrying with the same `clientId` returns the first reply (with `replayed: true`) instead of sending again.