---
title: "Search within a specific object type"
method: GET
path: "/search/{objectType}.json"
tags: ["Search"]
---

# Search within a specific object type

`GET /search/{objectType}.json`

Performs a text search within a specific object type. Supported types: job, company, material, knowledgearticle, attachment, formresponse, asset, materialbundle

## Path parameters

- `objectType` 'job' | 'company' | 'material' | 'knowledgearticle' | 'attachment' | 'formresponse' | 'asset' | 'materialbundle', required

## Query parameters

- `q` string, required
- `limit` integer

## Response `200`

Search results

- ObjectSearchResponse
  - `results` SearchResult[], required
    - `uuid` string, uuid, required — UUID of the found object
    - `type` string, required — Type of the object
    - `title` string, required — Title of the object
    - `highlights` object — Highlighted text snippets that matched the query
  - `query` string, required — The search query that was used
  - `objectType` string, required — The object type that was searched
  - `count` integer, required — Number of results returned

## Other responses

- `400` — Bad request
- `429` — Too many requests - Search throttled
- `500` — Internal server error

---

[API](https://skmtc.dev/servicem8/apis/servicem8-api.md) · [All operations](https://skmtc.dev/servicem8/apis/servicem8-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/servicem8/servicem8-api/revisions/53ede60e3653/schema)
