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
attachmentId
Unique identifier of the attachment.
Query parameters
type
The content that downloadUrl points to.
original: The uploaded file.scs: The 3D model that CAD processing created for the viewer.
Allowed values:
expiresIn
Number of seconds downloadUrl stays valid.
Response headers
Request-Id
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.
id
Unique identifier of the attachment.
projectId
ID of the project.
path
Name of the attachment file.
contentType
Content type of the file, or null if unknown.
sizeBytes
Size of the file in bytes, or null until the attachment is complete.
processingStatus
CAD processing status. It stays pending unless CAD processing was started.
Allowed values:
processingError
Why CAD processing failed, or null if it did not fail.
createdAt
Time at which the attachment was created.
downloadUrl
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