# Search Knowledge Base

GET /api/v2/projects/{projectId}/knowledge/search

Searches the project's published public and internal articles the way the support agent does, and returns the best matches first. Each match has the article id, title, type, collection, and a short snippet. Drafts are not included. matches is empty when nothing published matched, or the project has no help center.

## Request

- projectId: string, path, required — ID of the project whose help center to search.
- limit: integer, query — How many matches to return, from 1 to 10. Omit for 5.
- query: string, query, required — The customer's question, or the words to match. This is the search the support agent runs.

## Response

- 200: Successful response
  - matches: object[], required — Best match first. Empty when nothing published matched, or the project has no help center.
    - collection: string, required — Collection name. Null for an internal article.
    - id: string, required — Article id.
    - snippet: string, required — Short excerpt from the description or body.
    - title: string, required
    - type: public | internal, required
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 404: Not found
- 500: Internal server error
