CADViewer Technical Documentation, Installation Guide and Reference Samples Library

Request - Response

CADViewer REST API Request

A Request will contain the following Key-Value pairs section:


Request KeyRequest Value
actionThe action can be one of the following: conversion, data_extraction, svg_creation, pdf_creation and cadviewer_display.
converterEither “autodetect” or the name of the converter, AutoXchange 2023, LinkList 2022, DwgMerge 2022, etc.
versionVersion of converter if not “autodetect”
contentTypeThe content type can be one of the following: “file”, “embedded”, “stream” . “file” is a physical url, “embedded” is for a base64 encoded file embedded in the call, “stream” is a stream end-point included in the call

Depended on the setting of the contentType key, then one of the below Key-Value pairs.

Request KeyRequest Value
contentLocationlocation of “file” object
contentSteamlocation of “stream” end-point
embeddedContentbase64 encoded “embedded” content

Additionally , the request must contain the following Key-Value pairs section:


Request KeyRequest Value
contentFormatCan be any of the supported input formats: DWG, DXF, DWF, PDF, DGN, PCF
contentUsernameUsername when TMS REST server is calling the content location/stream to pick up content
contentPasswordPassword when TMS REST server is calling location/stream to pick up content
userLabeloptional label returned in the response
contentResponsethe setting on how to pick up the converted content, as “file”, as a “stream” end-point or “embedded” in the response
parametersThis is an object with the conversion parameters used in the conversion or data-extraction, please refer to the command line interface documentation for the Tailor Made Software converters

For application control of the converter endpoint, this Key-Value pair is provided, see Business Extenstions to Handlers.


Request KeyRequest Value
customConversionEndpointExtensionDefault is “false” , set to “true” and application programmer gets a hook to control conversions on the server.


CADViewer REST API Response

A Response will contain the following Key-Value pairs section:


Request KeyRequest Value
completedActionThe completed action can be one of the following: conversion, data_extraction, svg_creation, pdf_creation and cadviewer_display.
errorCodeEither “none” or the Error Code
converterName of converter used
versionVersion of converter used
userLabeloptional label returned in the response, matching the userLabel in the Request call
contentResponseThe content response type can be one of the following: “file”, “embedded”, “stream” . “file” is a physical url, “embedded” is for a base64 encoded file embedded in the call, “stream” is a stream end-point included in the call

Depended on the setting of the contentResponse key, then one of the below Key-Value pair.


Request KeyRequest Value
contentLocationlocation of “file” object
contentSteamlocation of “stream” end-point
embeddedContentbase64 encoded “embedded” content



Last updated on 21 Mar 2022
Published on 13 Mar 2020