Finalizedmodel

This request returns the 3D data generated in the configuration

Endpoints

  •   GET /configsessions/{sessionId}/finalizedmodel

Remark

Adding the key that is generated when initializing the session (modelKey in the session initialize response) to the query works as a substitute for the Authorization and Api Key headers. That way the URL can be simply used in a browser to trigger a download.

Example request


 GET https://api.paramate.trinckle.com/configsessions/305bdb5c-cf8f-4256-9180-fe050d119f03/finalizedmodel?type=stl&filename=finalmodel.stl
 -H Authorization: Bearer eyJhbGciOiJIUzI1Ni ... 3H8gC1k2DIKNEeJpb72yvmdY
 -H X-API-KEY: 5b260091e8a03ab9af7716af0d71474a

 

Example response


 HTTP/1.1 200 OK
 [raw 3D model data in STL format, with the file name "finalmodel.stl"]
 


If you don't want to use headers:

Example request


 GET https://api.paramate.trinckle.com/configsessions/305bdb5c-cf8f-4256-9180-fe050d119f03/finalizedmodel?type=3mf&key=eyJhbGciOiJIUzI1NiI ... fGdWOZiTKJSgARMFvvJ8

 

Example response


 HTTP/1.1 200 OK
 [raw 3D model data in 3MF format]
 

Header

Authorization

(optional) Bearer {token}

X-API-KEY

(optional) {API key}

Query

type

(optional; default: stl)
file type
The supported file types depend on the CAD server

filename

(optional; default: model.{type})
file name
The server will set the file name in the response headers, making browsers automatically use this for downloads.

key

(optional)

Url

sessionID

The ID of the configuration session

Response

A 3D model file in binary format.

See also