Skip to navigation

Get an attachment

Retrieves an attachment by its ID, including its CAD processing status and a temporary download URL. Do not include the Authorization header when accessing the download URL.

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

attachmentIdstringRequired
Unique identifier of the attachment.

Query parameters

typeenumOptionalDefaults to original

The content that downloadUrl points to.

  • original: The uploaded file.
  • scs: The 3D model that CAD processing created for the viewer.
Allowed values:
expiresInintegerOptional60-86400Defaults to 3600

Number of seconds downloadUrl stays valid.

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 the requested attachment.
idstring
Unique identifier of the attachment.
projectIdstring
ID of the project.
pathstring
Name of the attachment file.
contentTypestring or null

Content type of the file, or null if unknown.

sizeBytesinteger or null

Size of the file in bytes, or null until the attachment is complete.

processingStatusenum

CAD processing status. It stays pending unless CAD processing was started.

Allowed values:
processingErrorstring or null

Why CAD processing failed, or null if it did not fail.

createdAtdatetime
Time at which the attachment was created.
downloadUrlstringOptional
Temporary, signed URL of the content. Returned when you get an attachment.

Errors

401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error