Skip to navigation

List shares

Retrieves file shares, ordered from newest to oldest. Send either revisionId or workspaceId. Each result represents either a confirmed share with a user or a pending share with an email address not yet associated with a CAD ROOMS account.

  • revisionId: Returns shares of the file version associated with the revision. Collaborators and higher can see all shares. Users with whom the file is shared can see their own share.
  • workspaceId: Returns shares within a workspace that you have permission to view. Use memberId to list files shared with a specific guest or pending invite, and projectId to list shares within a specific project.

Send include=totalCount to retrieve the total number of matching shares. For example, send workspaceId, memberId, status=confirmed, limit=1 and include=totalCount to retrieve the number of files shared with a specific user.

Required permission: Depends on the filter.

  • For revisionId: Viewer or higher in the project, or a share of the file.
  • For workspaceId: Any workspace role.
  • For the files of a guest: Workspace owner or admin, Collaborator or higher in the project of the file, or the guest.
  • For the files of a pending invite: Viewer or higher in the workspace, or the user who sent the invite.

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.

Query parameters

revisionIdstringOptional

Returns the shares of the file version behind this revision. Send either this or workspaceId.

workspaceIdstringOptional

Returns the shares in this workspace. Send either this or revisionId.

memberIdstringOptional

With workspaceId, returns only the shares with this person: the userId of a guest or member, or the inviteId of a pending invite.

projectIdstringOptional

With workspaceId, returns only the shares of files in this project.

statusenumOptional
Returns only confirmed shares, or only pending shares.
Allowed values:
includelist of enumsOptional

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

  • 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 shares, newest first.
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
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error