Prerequisites
- Send an API token whose effective permissions include Workspace search.
- Send the organization slug in the
x-orgheader. - Semantic
ArtifactContentsearch requires a PrivateGPT gateway linked to the organization collection. Keyword-only searches do not use the semantic search engine.
Search workspace content
Search withGET /api/v1/app/search.
Endpoint parameters
Endpoint parameters
artifact_types accepts InlineText, Document, Folder, Summary, Composition, SmartDoc, Link, BulkQA, ReadAndExtract, SqlDatabase, McpServer, Integration, Analysis, and Skill. Searchable content currently covers document-family artifacts, visible links to them, and agent flows. Other valid artifact types can produce no artifact or content results.
Example response
Example response
Filter behavior
- If
typesandtypeare both present,typestakes precedence andtypeis ignored. - Omitting
project_idssearches every project visible to the caller. Valid but inaccessible project IDs are silently excluded. exclude_project_idsis applied afterproject_ids. If no projects remain, the response is[].- Date bounds use each entity’s creation time. For semantic content results, they use the artifact creation time.
- Artifact-type filtering affects only
ArtifactandArtifactContentresults. - Search returns only visible projects, active visible threads and interactions, and available artifacts ready for use.
Response fields
Understanding search scores
rankcombines the source score, its position in the keyword or semantic result list, and dynamic source weighting. It is not a probability or confidence percentage and has no fixed range. Use the returned order instead of applying a fixed threshold.keyword_scoreis the original PostgreSQL full-text relevance score. Higher values are treated as stronger keyword matches. A name matched outside full-text ranking can have a score of0.semantic_scoreis the raw semantic retrieval score for the selected content chunk. It is not normalized confidence.- Compare raw scores only between results produced by the same engine for the same query. Do not compare
keyword_scorewithsemantic_score, or scores from different requests. - Optional raw score fields are omitted from JSON rather than returned as
null.
Results are grouped in this order:
Project, Artifact, Thread, Interaction, and ArtifactContent. Within each group, higher rank values appear first. Because limit is applied per result type, a mixed-type response can contain more than limit total items. Entries returned by both search engines are not deduplicated.Metadata by result type
Errors and edge cases
- 400: missing or blank
q; query outside the configured length range; empty or invalid list values; invalid project UUID; invalid date or limit;start_dateafterend_date;limitbelow1; or missing organization context. - 401: missing or invalid authentication.
- 403: the token or account lacks Workspace search permission.
- 500: the deployment has no search languages configured.
- A valid search with no visible matches returns
[].