Chuyển tới nội dung chính

10. Search

GET /api/v1/search

Perform full-text search across contacts, messages, notes.

Query Parameters:

  • q - Search query (required)
  • type - Filter type: contacts, messages, notes (optional)
  • limit - Results limit (default: 20)

Response:

{
"results": [
{
"id": "contact-001",
"type": "contact",
"title": "Nguyen Van A",
"subtitle": "[email protected]",
"url": "/contacts/contact-001"
},
{
"id": "msg-001",
"type": "message",
"title": "Hello from Nguyen Van A",
"subtitle": "in conversation with Zalo Official",
"timestamp": "2026-06-05T16:45:00Z"
}
]
}