Search API

Search across knowledge, feedback, issues, and customers via the REST API.

The Search API provides a unified search endpoint that queries across all resource types in your project - knowledge articles, feedback sessions, issues, and customers.

Authentication required. All requests must include a valid API key in the Authorization header. See Authentication for details.

Base URL

https://your-hissuno-instance.com

Search resources

GET /api/search?projectId=YOUR_PROJECT_ID&q=your+query

Searches across project resources and returns ranked results. When no type filter is specified, all resource types are searched in parallel and results are sorted by relevance score.

Query parameters

ParameterTypeRequiredDescription
projectIdstringYesThe project to search within
qstringYesSearch query text
typestringNoRestrict search to a single resource type - knowledge, feedback, issues, or customers
limitintegerNoMaximum number of results to return. Defaults to 10, maximum 20

Example request - search all types

curl -X GET "https://your-hissuno-instance.com/api/search?projectId=YOUR_PROJECT_ID&q=export%20csv" \
  -H "Authorization: Bearer hiss_your_api_key"

Example request - search a specific type

curl -X GET "https://your-hissuno-instance.com/api/search?projectId=YOUR_PROJECT_ID&q=password%20reset&type=feedback&limit=5" \
  -H "Authorization: Bearer hiss_your_api_key"

Example response

{
  "results": [
    {
      "id": "iss_abc123",
      "type": "issues",
      "name": "Export button unresponsive on Chrome",
      "snippet": "Multiple users report that the CSV export button does not trigger a download...",
      "score": 0.92
    },
    {
      "id": "sess_def456",
      "type": "feedback",
      "name": "Support ticket #4821",
      "snippet": "The export button does nothing when I click it.",
      "score": 0.87
    },
    {
      "id": "kb_ghi789",
      "type": "knowledge",
      "name": "Exporting Reports",
      "snippet": "To export a report as CSV, click the Export button in the top-right corner...",
      "score": 0.65
    },
    {
      "id": "cust_jkl012",
      "type": "customers",
      "name": "Acme Corp",
      "snippet": "Enterprise customer - reported export issues in Q4",
      "score": 0.41
    }
  ],
  "total": 4
}

Response fields

FieldTypeDescription
resultsarrayArray of search result objects
results[].idstringUnique identifier of the matched resource
results[].typestringResource type - knowledge, feedback, issues, or customers
results[].namestringDisplay name or title of the resource
results[].snippetstringText excerpt showing the matching content
results[].scorenumberRelevance score (optional - present when the adapter provides scoring)
totalintegerTotal number of results returned

Error responses

All endpoints return errors in the following format:

{
  "error": "Description of the problem."
}
StatusMeaning
400Missing or invalid parameters (e.g., missing projectId or q, invalid type value)
401Missing or invalid API key
403API key does not have access to this project
500Internal server error