Initiate a Session (SAML enabled workspaces)
POST {{baseUrl}}/.api/api.svc/session/create
This endpoint is used to authenticate a user, and retrieve a session token, which is needed for all subsequent calls. Any workspace that has SAML authentication enabled must use this endpoint.
The values required for this call can be passed as key/value pairs in the body of the call, or as query parameters in the URL if necessary. Passing this information in the body is the preferred method for security purposes.
Request Body
[{"name"=>"appId", "value"=>"{{appId}}", "datatype"=>"string"}, {"name"=>"appPass", "value"=>"{{appPass}}", "datatype"=>"string"}, {"name"=>"apiversion", "value"=>"1", "datatype"=>"number"}, {"name"=>"username", "value"=>"{{userEmail}}", "datatype"=>"string"}, {"name"=>"password", "value"=>"{{userPassword}}", "datatype"=>"string"}, {"name"=>"community", "value"=>"{{baseUrl}}", "datatype"=>"string"}]
HEADERS
| Key | Datatype | Required | Description |
| Accept
| null | | String (Response type)
Accepted values:
application/json
application/xml
The type of response data to request. By default this endpoint will respond with XML if no value is passed. |
RESPONSES
status: OK
{"minRequestPeriod":0,"requestSupportCode":637587787829860833,"dictionary":null,"response":{"__type":"Session:http://schemas.iglooplatform.com/Igloo.Old.Common","applicationId":"0aaefd00-c893-11eb-9345-0800200c9a66","communityId":"0aaefd00-c893-11eb-9345-0800200c9a66","userId":"0aaefd00-c893-11eb-9345-0800200c9a66","secretKey":"0aaefd00-c893-11eb-9345-0800200c9a66","sessionKey":"0aaefd00-c893-11eb-9345-0800200c9a66","baseUri":"http://yourworkplace.igloodigitalworkplace.ca/.api/api.svc/","baseUriHttps":"https://yourworkplace.igloodigitalworkplace.ca/.api/api.svc/","customSessionKey":"","authInstance":null,"tenantId":"ENV"}}