Skip to navigation

Search files

Searches for files within a project by file path. The search is case-insensitive and matches any part of the path. For example, brack matches parts/bracket.prt, while parts/ matches all files within the parts folder.

Results are sorted alphabetically by file path. The starred and include parameters behave as described in List files.

Required permission: Viewer or higher in the project.

Authentication

AuthorizationBearer
An API key associated with your user account and workspace. API requests inherit your existing workspace permissions.
OR
AuthorizationBearer
The session token of a user signed in to the CAD ROOMS app. Every endpoint accepts it in place of an API key.

Path parameters

projectIdstringRequired
Unique identifier of the project.

Query parameters

querystringRequired>=1 character

Text to search for within file paths. Supports case-insensitive, partial matching.

starredbooleanOptional

Returns only starred files when true, and only files without a star when false.

includelist of enumsOptional

Adds data to the response. Separate several values with commas.

  • eco: Adds eco to each file, the draft or open ECO that includes it. Needs the Business plan.
  • totalCount: Adds totalCount, the number of records that match the request, next to nextCursor.
Allowed values:
limitintegerOptional1-1000Defaults to 100
Maximum number of records to return per page. Accepts values between 1 and 1000.
cursorstringOptional

Cursor for retrieving the next page. Use the nextCursor value from the previous response. Omit for the first page.

Response headers

Request-IdstringOptional

Request-Id. Unique identifier for the request. Every response, success or error, returns it. Error bodies carry the same value in requestId. Include it when contacting CAD ROOMS support.

Response

Returns a paginated list of matching files, sorted by path.
datalist of objects
Array of records returned for the current page, following the endpoint's defined sort order.
nextCursorstring or null

Cursor for retrieving the next page. Returns null when there are no more results.

totalCountintegerOptional

Number of records that match the request, across all pages. Returned only when the list accepts include=totalCount and you send it.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error