cURL
curl --request GET \
--url https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"record": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"state": "ARCHIVED",
"sequenceId": 123,
"dueDate": "2023-11-07T05:31:56Z",
"stepDueDate": "2023-11-07T05:31:56Z",
"userDate": "2023-11-07T05:31:56Z",
"recordName": "<string>",
"step": {
"stepType": "ORIGIN",
"name": "<string>",
"description": "<string>",
"priority": 123,
"userGroupOperationType": "FULL_ACCESS",
"xpos": 123,
"ypos": 123,
"isPublic": true,
"commentsEnabled": true,
"documentsEnabled": true,
"externalUserMfaRequired": true,
"uxriEnabled": true,
"autofillEnabled": true,
"sla": {
"enabled": true,
"duration": 123
},
"assignableUserType": "APP_AND_EXTERNAL_USERS",
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": true,
"origin": true,
"chain": true
},
"origin": {
"stepType": "ORIGIN",
"name": "<string>",
"description": "<string>",
"priority": 123,
"userGroupOperationType": "FULL_ACCESS",
"xpos": 123,
"ypos": 123,
"isPublic": true,
"commentsEnabled": true,
"documentsEnabled": true,
"externalUserMfaRequired": true,
"uxriEnabled": true,
"autofillEnabled": true,
"sla": {
"enabled": true,
"duration": 123
},
"assignableUserType": "APP_AND_EXTERNAL_USERS",
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": true,
"origin": true,
"chain": true
},
"creator": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"status": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true,
"email": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"tier": "PRIMARY",
"pricingUserTier": "STANDARD",
"mfaEnabled": true,
"mfaSetup": true,
"autoprovisioned": true,
"scimStatus": "<string>",
"automatedUser": true,
"automatedUserFieldLabels": [
"<string>"
],
"lastLogin": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"accessType": "<string>"
},
"lastDeactivated": "2023-11-07T05:31:56Z",
"external": true,
"disabled": true,
"serviceAccount": true,
"superUser": true,
"name": "<string>",
"locked": true
},
"user": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"status": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true,
"email": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"tier": "PRIMARY",
"pricingUserTier": "STANDARD",
"mfaEnabled": true,
"mfaSetup": true,
"autoprovisioned": true,
"scimStatus": "<string>",
"automatedUser": true,
"automatedUserFieldLabels": [
"<string>"
],
"lastLogin": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"accessType": "<string>"
},
"lastDeactivated": "2023-11-07T05:31:56Z",
"external": true,
"disabled": true,
"serviceAccount": true,
"superUser": true,
"name": "<string>",
"locked": true
},
"secondaryAssignees": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"status": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true,
"email": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"tier": "PRIMARY",
"pricingUserTier": "STANDARD",
"mfaEnabled": true,
"mfaSetup": true,
"autoprovisioned": true,
"scimStatus": "<string>",
"automatedUser": true,
"automatedUserFieldLabels": [
"<string>"
],
"lastLogin": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"accessType": "<string>"
},
"lastDeactivated": "2023-11-07T05:31:56Z",
"external": true,
"disabled": true,
"serviceAccount": true,
"superUser": true,
"name": "<string>",
"locked": true
}
],
"userGroups": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": true,
"title": "<string>",
"automatedUserGroup": true,
"automatedUserGroupFieldLabel": "<string>"
}
],
"currentValueMaps": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"copyable": true
}
],
"assignee": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"status": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true,
"email": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"tier": "PRIMARY",
"pricingUserTier": "STANDARD",
"mfaEnabled": true,
"mfaSetup": true,
"autoprovisioned": true,
"scimStatus": "<string>",
"automatedUser": true,
"automatedUserFieldLabels": [
"<string>"
],
"lastLogin": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"accessType": "<string>"
},
"lastDeactivated": "2023-11-07T05:31:56Z",
"external": true,
"disabled": true,
"serviceAccount": true,
"superUser": true,
"name": "<string>",
"locked": true
},
"assigneeType": "EXTERNAL",
"daysUntilDue": {
"value": 123,
"label": "NO_DUE_DATE"
},
"activeForRecord": "<unknown>",
"lastUpdated": "2023-11-07T05:31:56Z",
"status": "INACTIVE",
"viewableTitle": "<string>",
"initialStateEndStep": true,
"workflowDueDate": "2023-11-07T05:31:56Z",
"recordType": "RECORD",
"name": "<string>",
"isPublic": true
},
"analysisInput": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"analysisInputValueList": [
{
"confidence": 123,
"max": 123,
"min": 123,
"mostLikely": 123,
"analysisType": "CONTACT_FREQUENCY",
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}
]
},
"title": "<string>",
"annualMin": 123,
"annualAvg": 123,
"annualMedian": 123,
"annualMode": 123,
"annualMax": 123,
"annualTenthPercentile": 123,
"annualNinetiethPercentile": 123,
"primaryMin": 123,
"primaryAvg": 123,
"primaryMedian": 123,
"primaryMode": 123,
"primaryMax": 123,
"primaryTenthPercentile": 123,
"primaryNinetiethPercentile": 123,
"secondaryMin": 123,
"secondaryAvg": 123,
"secondaryMedian": 123,
"secondaryMode": 123,
"secondaryMax": 123,
"secondaryTenthPercentile": 123,
"secondaryNinetiethPercentile": 123,
"totalMin": 123,
"totalAvg": 123,
"totalMedian": 123,
"totalMode": 123,
"totalMax": 123,
"totalTenthPercentile": 123,
"totalNinetiethPercentile": 123,
"analysisStatus": "NOT_STARTED",
"errorMessage": "<string>",
"analysisStarted": "2023-11-07T05:31:56Z",
"analysisCompleted": "2023-11-07T05:31:56Z",
"simulationCount": 123,
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"elapsedTimeInMilliSeconds": 123
}
]Analysis
Find latest analyses for scenario record
GET
/
api
/
v1
/
analyses
/
scenario
/
{recordId}
/
most-recent
cURL
curl --request GET \
--url https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent \
--header 'Authorization: Bearer <token>'import requests
url = "https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.logicgate.com/api/v1/analyses/scenario/{recordId}/most-recent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"record": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"state": "ARCHIVED",
"sequenceId": 123,
"dueDate": "2023-11-07T05:31:56Z",
"stepDueDate": "2023-11-07T05:31:56Z",
"userDate": "2023-11-07T05:31:56Z",
"recordName": "<string>",
"step": {
"stepType": "ORIGIN",
"name": "<string>",
"description": "<string>",
"priority": 123,
"userGroupOperationType": "FULL_ACCESS",
"xpos": 123,
"ypos": 123,
"isPublic": true,
"commentsEnabled": true,
"documentsEnabled": true,
"externalUserMfaRequired": true,
"uxriEnabled": true,
"autofillEnabled": true,
"sla": {
"enabled": true,
"duration": 123
},
"assignableUserType": "APP_AND_EXTERNAL_USERS",
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": true,
"origin": true,
"chain": true
},
"origin": {
"stepType": "ORIGIN",
"name": "<string>",
"description": "<string>",
"priority": 123,
"userGroupOperationType": "FULL_ACCESS",
"xpos": 123,
"ypos": 123,
"isPublic": true,
"commentsEnabled": true,
"documentsEnabled": true,
"externalUserMfaRequired": true,
"uxriEnabled": true,
"autofillEnabled": true,
"sla": {
"enabled": true,
"duration": 123
},
"assignableUserType": "APP_AND_EXTERNAL_USERS",
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"end": true,
"origin": true,
"chain": true
},
"creator": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"status": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true,
"email": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"tier": "PRIMARY",
"pricingUserTier": "STANDARD",
"mfaEnabled": true,
"mfaSetup": true,
"autoprovisioned": true,
"scimStatus": "<string>",
"automatedUser": true,
"automatedUserFieldLabels": [
"<string>"
],
"lastLogin": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"accessType": "<string>"
},
"lastDeactivated": "2023-11-07T05:31:56Z",
"external": true,
"disabled": true,
"serviceAccount": true,
"superUser": true,
"name": "<string>",
"locked": true
},
"user": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"status": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true,
"email": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"tier": "PRIMARY",
"pricingUserTier": "STANDARD",
"mfaEnabled": true,
"mfaSetup": true,
"autoprovisioned": true,
"scimStatus": "<string>",
"automatedUser": true,
"automatedUserFieldLabels": [
"<string>"
],
"lastLogin": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"accessType": "<string>"
},
"lastDeactivated": "2023-11-07T05:31:56Z",
"external": true,
"disabled": true,
"serviceAccount": true,
"superUser": true,
"name": "<string>",
"locked": true
},
"secondaryAssignees": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"status": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true,
"email": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"tier": "PRIMARY",
"pricingUserTier": "STANDARD",
"mfaEnabled": true,
"mfaSetup": true,
"autoprovisioned": true,
"scimStatus": "<string>",
"automatedUser": true,
"automatedUserFieldLabels": [
"<string>"
],
"lastLogin": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"accessType": "<string>"
},
"lastDeactivated": "2023-11-07T05:31:56Z",
"external": true,
"disabled": true,
"serviceAccount": true,
"superUser": true,
"name": "<string>",
"locked": true
}
],
"userGroups": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"recordDefault": true,
"title": "<string>",
"automatedUserGroup": true,
"automatedUserGroupFieldLabel": "<string>"
}
],
"currentValueMaps": [
{
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"copyable": true
}
],
"assignee": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"discriminator": "<string>",
"status": "<string>",
"idOrTransientId": "<string>",
"transientIdOrId": "<string>",
"textOrNumericValue": "<string>",
"empty": true,
"email": "<string>",
"company": "<string>",
"imageUrl": "<string>",
"tier": "PRIMARY",
"pricingUserTier": "STANDARD",
"mfaEnabled": true,
"mfaSetup": true,
"autoprovisioned": true,
"scimStatus": "<string>",
"automatedUser": true,
"automatedUserFieldLabels": [
"<string>"
],
"lastLogin": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"accessType": "<string>"
},
"lastDeactivated": "2023-11-07T05:31:56Z",
"external": true,
"disabled": true,
"serviceAccount": true,
"superUser": true,
"name": "<string>",
"locked": true
},
"assigneeType": "EXTERNAL",
"daysUntilDue": {
"value": 123,
"label": "NO_DUE_DATE"
},
"activeForRecord": "<unknown>",
"lastUpdated": "2023-11-07T05:31:56Z",
"status": "INACTIVE",
"viewableTitle": "<string>",
"initialStateEndStep": true,
"workflowDueDate": "2023-11-07T05:31:56Z",
"recordType": "RECORD",
"name": "<string>",
"isPublic": true
},
"analysisInput": {
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"analysisInputValueList": [
{
"confidence": 123,
"max": 123,
"min": 123,
"mostLikely": 123,
"analysisType": "CONTACT_FREQUENCY",
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}
]
},
"title": "<string>",
"annualMin": 123,
"annualAvg": 123,
"annualMedian": 123,
"annualMode": 123,
"annualMax": 123,
"annualTenthPercentile": 123,
"annualNinetiethPercentile": 123,
"primaryMin": 123,
"primaryAvg": 123,
"primaryMedian": 123,
"primaryMode": 123,
"primaryMax": 123,
"primaryTenthPercentile": 123,
"primaryNinetiethPercentile": 123,
"secondaryMin": 123,
"secondaryAvg": 123,
"secondaryMedian": 123,
"secondaryMode": 123,
"secondaryMax": 123,
"secondaryTenthPercentile": 123,
"secondaryNinetiethPercentile": 123,
"totalMin": 123,
"totalAvg": 123,
"totalMedian": 123,
"totalMode": 123,
"totalMax": 123,
"totalTenthPercentile": 123,
"totalNinetiethPercentile": 123,
"analysisStatus": "NOT_STARTED",
"errorMessage": "<string>",
"analysisStarted": "2023-11-07T05:31:56Z",
"analysisCompleted": "2023-11-07T05:31:56Z",
"simulationCount": 123,
"id": "<string>",
"active": true,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"elapsedTimeInMilliSeconds": 123
}
]Authorizations
ApiTokenbasic
Response
200 - application/json
OK

