Initialize
Starts a configuration session.
Endpoints
- POST /configsessions
Header
- Authorization
-
Bearer {token}
- X-API-KEY
-
{API key}
Body
- JSON
-
{
"configuratorId": $configuratorId
}
where $configuratorId is the ID of the configurator to be used in the session
Response
A JSON object with the result
id {String} The ID of the created configurator session
renderingKey {String} Key for rendering requests
modelKey {String} CAD key for model requests
renderSessions {Object} list of rendering sessions
Example request
POST https://api.paramate.trinckle.com/configsessions
-H Authorization: Bearer eyJhbGciOiJIUzI1Ni ... 3H8gC1k2DIKNEeJpb72yvmdY
-H X-API-KEY: 5b260091e8a03ab9af7716af0d71474a
-H Content-Type: application/json
{
"configuratorId": "75522d4a-f94c-4260-93ec-dcb485524e8c"
}
Output
HTTP/1.1 200 OK
{
"id": "305bdb5c-cf8f-4256-9180-fe050d119f03",
"renderingKey": "eyJhbGciOiJIUzI1NiI ... fGdWOZiTKJSgARMFvvJ8",
"modelKey": "eyJhbGciOiJIUzI1NiI ... mS89ueoeIMm5yige1Es7",
"renderSessions":
[
{
"rendererType": "webgl",
"sessionId": "6cfa2943-59b3-4d29-9a42-df601bdb4c8e"
}
]
}