Skip to content

Search API

Search the workspace the same way the search box in Project Feed does. Results come back ranked, with a plain-text snippet and a link path into the app.

Endpoints

Result types and scopes

The key needs at least one of the read scopes below. Each result type needs its own scope. Without types, the search covers projects, posts, tasks, docs, canvases, and discussions the key can read and skips the rest. Name comment, annotation, media, user, or tag in types to search those. If types names a type the key cannot read, the request returns 403 and names the missing scope. An unknown type returns 400. A key with none of these scopes gets 403. Free workspaces can search projects, posts, and tasks only.

  • project needs projects:read: Project names and descriptions
  • post needs posts:read: Published post titles and text
  • task needs tasks:read: Task titles, descriptions, and identifiers
  • doc needs docs:read: Titles and text of active docs
  • canvas needs canvas:read: Names and descriptions of active canvases
  • discussion needs chat:read: Chat discussion titles and messages
  • comment needs comments:read: Comments on posts, tasks, and docs, and client portal feedback. Matches from tasks, docs, and posts also need tasks:read, docs:read, or posts:read
  • annotation needs comments:read: Annotations on media. Also needs posts:read
  • media needs media:read: File names on posts, tasks, comments, chat, and canvases. Each source also needs its own read scope
  • user needs members:read: Workspace members by name and username
  • tag needs tags:read: Tags that are on posts you can open

Project, post, task, and discussion results carry the project they belong to. Results written or uploaded by someone carry their authorId; it is null for types without an author.

What the key can see

Search returns only what the key's user can open in the app. Content in private projects they cannot open, private canvases made by someone else, and chat rooms they cannot read never appear. Discussions are left out while chat is turned off for the workspace, and canvases while canvases are turned off. A projectId the key cannot open returns 404.

Results and pagination

The query is trimmed and must be 2 to 200 characters. Results are ranked by relevance across all types. Among equally relevant results, those in archived projects come last, then results are ordered by type and ID, so pages do not overlap. The url is the result's path in the Project Feed app, starting with the workspace slug.

Pass nextCursor back as cursor while hasMore is true. A limit outside 1 to 50 or a malformed cursor returns 400. Each type contributes at most 25 ranked matches, so paging stops after that. See API conventions for general pagination rules.

The hosted MCP server has a matching search tool, and the CLI has pf search.

Image preview
100%