Skip to main content
Use the Search API to query content visible to the authenticated workspace member. You can combine text, resource, project, artifact-type, and creation-date filters in one request.

Prerequisites

  • Send an API token whose effective permissions include Workspace search.
  • Send the organization slug in the x-org header.
  • Semantic ArtifactContent search requires a PrivateGPT gateway linked to the organization collection. Keyword-only searches do not use the semantic search engine.

Search workspace content

Search with GET /api/v1/app/search.
List parameters are case-sensitive, trim whitespace, remove duplicates, and support both formats below:
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.

Filter behavior

  • If types and type are both present, types takes precedence and type is ignored.
  • Omitting project_ids searches every project visible to the caller. Valid but inaccessible project IDs are silently excluded.
  • exclude_project_ids is applied after project_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 Artifact and ArtifactContent results.
  • Search returns only visible projects, active visible threads and interactions, and available artifacts ready for use.

Response fields

Understanding search scores

  • rank combines 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_score is 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 of 0.
  • semantic_score is 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_score with semantic_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_date after end_date; limit below 1; 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 [].