Search documents by type

Searches documents of a specific datatype using a search phrase. Useful for autocomplete or lookup scenarios within the admin UI.

Requires authentication.

Request

GET /documents/search/{dataType}

Path Parameters

ParameterTypeRequiredDescription
dataTypestringYesThe document type to search. Common values: product, category, manufacturer.

Query Parameters

ParameterTypeRequiredDescription
qstringNoThe search phrase. Defaults to an empty string (returns all documents).
languagestringNoLanguage identifier to scope the search. Defaults to the instance default language.

Headers

HeaderValue
AuthorizationBearer <token>

Example Request

GET /documents/search/category?q=shoes&language=de
Authorization: Bearer <token>

Response

Returns a JSON array of matching document objects.

Response Body

Each object in the array contains:

FieldTypeDescription
idstringDocument identifier.
activebooleanWhether the document is active.
titlestringDisplay title of the document.
urlstringURL of the document.
manufacturer_titlestringManufacturer name (for products).
category_titlestringCategory name (for products).
eanstringEAN/barcode (for products).

Example Response

[
  {
    "id": "cat-123",
    "active": true,
    "title": "Men's Shoes",
    "url": "/men/shoes",
    "category_title": null,
    "manufacturer_title": null,
    "ean": null
  }
]