---
title: "Search for nodes in the workspace"
method: POST
path: "/api/v1/w/{wId}/search"
tags: ["Search"]
---

# Search for nodes in the workspace

`POST /api/v1/w/{wId}/search`

Search for nodes in the workspace

## Path parameters

- `wId` string, required

## Request body

- object
  - `query` string, required — The search query
  - `includeDataSources` boolean — List of data source IDs to include in search
  - `viewType` string — Type of view to filter results
  - `spaceIds` string[] — List of space IDs to search in
  - `nodeIds` string[] — List of specific node IDs to search
  - `searchSourceUrls` boolean — Whether to search source URLs

## Response `200`

Search results retrieved successfully

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Space not found

---

[API](https://skmtc.net/dust-tt/apis/dust-api-documentation.md) · [All operations](https://skmtc.net/dust-tt/apis/dust-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dust-tt/dust-api-documentation/versions/5834d690c29d/schema)
