Skip to navigation

List files

Retrieves all files in a project, including their latest state and revision details. Results are sorted by file path and include each file’s name, folder, and full path.

Files reflect the state of the project as of the latest contribution. Changes that have not yet been contributed are excluded.

Use the optional path parameter to retrieve specific files. Repeat the parameter to specify multiple file paths, up to 100. Only files that exactly match the specified paths are returned. Paths that do not match an existing file are omitted.

Use starred=true to retrieve only starred files. Use include=eco to include the draft or open ECO associated with each file. The include=eco option requires the Business plan. Requests using this option on other plans return a 403 response.

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

pathlist of stringsOptional

Returns only the files at these exact paths. Repeat the parameter for each path, for example ?path=parts/bracket.prt&path=parts/base.prt.

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 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