The organization's scenarios (worlds) and their parents.
curl --request GET \
--url https://api.vectorshift.ai/v1/object-model/worlds \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vectorshift.ai/v1/object-model/worlds"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vectorshift.ai/v1/object-model/worlds', 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://api.vectorshift.ai/v1/object-model/worlds",
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://api.vectorshift.ai/v1/object-model/worlds"
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://api.vectorshift.ai/v1/object-model/worlds")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vectorshift.ai/v1/object-model/worlds")
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{
"access_dependencies": [
{}
],
"access_dependencies_complete": true,
"access_dependency_type_ids": [
"<string>"
],
"access_dependency_types_complete": true,
"actions": [
{
"action_id": "<string>",
"answers": "<string>",
"caller_allowed": true,
"confirms": [
"<string>"
],
"display_name": "<string>",
"params": [
{
"creatable": true,
"display_name": "<string>",
"fields": "<array>",
"name": "<string>",
"param_type": "<string>",
"ref_type_id": "<string>",
"required": true
}
],
"require_reads": [
{}
],
"requirements": [
{}
],
"requires": [
"<string>"
],
"source": "<string>",
"subject_type_id": "<string>"
}
],
"audiences": [
{}
],
"axes": [
{
"allowed_values": [
"<string>"
],
"axis_id": "<string>",
"display_name": "<string>",
"ref_type_id": "<string>",
"required": true,
"value_kind": "<string>"
}
],
"caller_configure": {},
"caller_grid": {},
"checks": [
{}
],
"claim_types": [
{}
],
"decisions": [
{
"attribute": "<string>",
"autonomy": "<string>",
"autonomy_cap": "<string>",
"changes": true,
"decided_by": "<string>",
"decision_id": "<string>",
"display_name": "<string>",
"enters": "<string>",
"evidence": [
"<string>"
],
"expires_days": 123,
"link": "<string>",
"link_where": "<string>",
"only_if": "<string>",
"second_approver": true,
"type_id": "<string>"
}
],
"declarations_fingerprint": "<string>",
"definitions": [
{
"definition_id": "<string>",
"description": "<string>",
"display_name": "<string>",
"expr": "<string>",
"format": "<string>",
"index": [
"<string>"
],
"measure_kind": "<string>",
"reads_definitions": [
"<string>"
],
"reads_quantities": [
"<string>"
],
"reads_record_attributes": [
"<string>"
],
"record_attribute_dependencies_complete": true,
"referenced_by": [
"<string>"
],
"subject_type_id": "<string>",
"unit": "<string>"
}
],
"drafts": [
{}
],
"entity_types": [
{
"access_declared": true,
"attributes": [
{
"allowed_values": [
"<string>"
],
"archive_generation": 123,
"archived": true,
"choice_overrides": [
{
"allowed_values": [
"<string>"
],
"choice_colors": {},
"choice_labels": {},
"scope_attribute": "<string>",
"scope_record_id": "<string>"
}
],
"decimals": 123,
"display_name": "<string>",
"extensible": true,
"fixed_after_create": true,
"format": "<string>",
"name": "<string>",
"option_colors": {},
"option_labels": {},
"referenced_by": [
"<string>"
],
"required": true,
"scope_attribute": "<string>",
"scope_record_id": "<string>",
"separator": "<string>",
"storage": "<string>",
"unique": true,
"unit": "<string>",
"value_format": "<string>"
}
],
"delete_with": [
"<string>"
],
"deletion_policy": "<string>",
"display_name": "<string>",
"facets": [
{
"after_readers": "<string>",
"attributes": [
"<string>"
],
"before_readers": "<string>",
"display_name": "<string>",
"edit": [
"<string>"
],
"edit_as_written": [
"<string>"
],
"edit_audiences": [
"<string>"
],
"facet_id": "<string>",
"generated": true,
"hidden": true,
"quantities": [
"<string>"
],
"read": [
"<string>"
],
"read_as_written": [
"<string>"
],
"read_audiences": [
"<string>"
],
"readers_by_audience": true,
"restricted": true,
"source": "<string>",
"when": "<string>"
}
],
"icon_attribute": "<string>",
"image_attribute": "<string>",
"label_fallback_attributes": [
"<string>"
],
"lifecycle": {
"attribute": "<string>",
"milestones": [
"<string>"
]
},
"plural_name": "<string>",
"primary_label_attribute": "<string>",
"type_id": "<string>"
}
],
"explicit_grants": true,
"extensions": [
{}
],
"fiscal_year_end_month": 123,
"forms": [
{}
],
"lineage": {
"latest_template_version": "<string>",
"org_version": "<string>",
"template_id": "<string>",
"template_version": "<string>",
"upgrade_available": true
},
"modules": [
{}
],
"nav": {},
"prompts": [
{}
],
"quantities": [
{
"axis_ids": [
"<string>"
],
"capture": "<string>",
"collect": "<string>",
"description": "<string>",
"display_name": "<string>",
"format": "<string>",
"former_ids": [
"<string>"
],
"measure_kind": "<string>",
"quantity_id": "<string>",
"referenced_by": [
"<string>"
],
"source_names": {},
"sources": [
"<string>"
],
"subject_type_id": "<string>",
"time": "<string>",
"unit": "<string>",
"verified_from": "<string>"
}
],
"record_query_rollups": [
"<string>"
],
"relations": [
{
"cardinality": "<string>",
"edge_label": "<string>",
"from_type_id": "<string>",
"inverse_cardinality": "<string>",
"inverse_label": "<string>",
"relation_id": "<string>",
"to_type_id": "<string>",
"traversal_path": [
"<string>"
]
}
],
"reuse_declarations": true,
"supports_record_query_relations": true,
"supports_subject_layouts": true,
"version": "<string>",
"view_overrides": [
{}
],
"viewer_audiences": [
{}
],
"viewer_rosters": [
"<string>"
],
"views": [
{}
],
"waiting_on": [
{}
],
"walls": [
{}
],
"warnings": [
"<string>"
],
"worlds": [
{
"display_name": "<string>",
"ephemeral": true,
"parent_world_id": "<string>",
"scope_entity_ids": [
"<string>"
],
"status": "<string>",
"world_id": "<string>"
}
]
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}Scenarios
List scenarios
The organization’s scenarios (worlds) and their parents.
GET
/
v1
/
object-model
/
worlds
The organization's scenarios (worlds) and their parents.
curl --request GET \
--url https://api.vectorshift.ai/v1/object-model/worlds \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vectorshift.ai/v1/object-model/worlds"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vectorshift.ai/v1/object-model/worlds', 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://api.vectorshift.ai/v1/object-model/worlds",
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://api.vectorshift.ai/v1/object-model/worlds"
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://api.vectorshift.ai/v1/object-model/worlds")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vectorshift.ai/v1/object-model/worlds")
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{
"access_dependencies": [
{}
],
"access_dependencies_complete": true,
"access_dependency_type_ids": [
"<string>"
],
"access_dependency_types_complete": true,
"actions": [
{
"action_id": "<string>",
"answers": "<string>",
"caller_allowed": true,
"confirms": [
"<string>"
],
"display_name": "<string>",
"params": [
{
"creatable": true,
"display_name": "<string>",
"fields": "<array>",
"name": "<string>",
"param_type": "<string>",
"ref_type_id": "<string>",
"required": true
}
],
"require_reads": [
{}
],
"requirements": [
{}
],
"requires": [
"<string>"
],
"source": "<string>",
"subject_type_id": "<string>"
}
],
"audiences": [
{}
],
"axes": [
{
"allowed_values": [
"<string>"
],
"axis_id": "<string>",
"display_name": "<string>",
"ref_type_id": "<string>",
"required": true,
"value_kind": "<string>"
}
],
"caller_configure": {},
"caller_grid": {},
"checks": [
{}
],
"claim_types": [
{}
],
"decisions": [
{
"attribute": "<string>",
"autonomy": "<string>",
"autonomy_cap": "<string>",
"changes": true,
"decided_by": "<string>",
"decision_id": "<string>",
"display_name": "<string>",
"enters": "<string>",
"evidence": [
"<string>"
],
"expires_days": 123,
"link": "<string>",
"link_where": "<string>",
"only_if": "<string>",
"second_approver": true,
"type_id": "<string>"
}
],
"declarations_fingerprint": "<string>",
"definitions": [
{
"definition_id": "<string>",
"description": "<string>",
"display_name": "<string>",
"expr": "<string>",
"format": "<string>",
"index": [
"<string>"
],
"measure_kind": "<string>",
"reads_definitions": [
"<string>"
],
"reads_quantities": [
"<string>"
],
"reads_record_attributes": [
"<string>"
],
"record_attribute_dependencies_complete": true,
"referenced_by": [
"<string>"
],
"subject_type_id": "<string>",
"unit": "<string>"
}
],
"drafts": [
{}
],
"entity_types": [
{
"access_declared": true,
"attributes": [
{
"allowed_values": [
"<string>"
],
"archive_generation": 123,
"archived": true,
"choice_overrides": [
{
"allowed_values": [
"<string>"
],
"choice_colors": {},
"choice_labels": {},
"scope_attribute": "<string>",
"scope_record_id": "<string>"
}
],
"decimals": 123,
"display_name": "<string>",
"extensible": true,
"fixed_after_create": true,
"format": "<string>",
"name": "<string>",
"option_colors": {},
"option_labels": {},
"referenced_by": [
"<string>"
],
"required": true,
"scope_attribute": "<string>",
"scope_record_id": "<string>",
"separator": "<string>",
"storage": "<string>",
"unique": true,
"unit": "<string>",
"value_format": "<string>"
}
],
"delete_with": [
"<string>"
],
"deletion_policy": "<string>",
"display_name": "<string>",
"facets": [
{
"after_readers": "<string>",
"attributes": [
"<string>"
],
"before_readers": "<string>",
"display_name": "<string>",
"edit": [
"<string>"
],
"edit_as_written": [
"<string>"
],
"edit_audiences": [
"<string>"
],
"facet_id": "<string>",
"generated": true,
"hidden": true,
"quantities": [
"<string>"
],
"read": [
"<string>"
],
"read_as_written": [
"<string>"
],
"read_audiences": [
"<string>"
],
"readers_by_audience": true,
"restricted": true,
"source": "<string>",
"when": "<string>"
}
],
"icon_attribute": "<string>",
"image_attribute": "<string>",
"label_fallback_attributes": [
"<string>"
],
"lifecycle": {
"attribute": "<string>",
"milestones": [
"<string>"
]
},
"plural_name": "<string>",
"primary_label_attribute": "<string>",
"type_id": "<string>"
}
],
"explicit_grants": true,
"extensions": [
{}
],
"fiscal_year_end_month": 123,
"forms": [
{}
],
"lineage": {
"latest_template_version": "<string>",
"org_version": "<string>",
"template_id": "<string>",
"template_version": "<string>",
"upgrade_available": true
},
"modules": [
{}
],
"nav": {},
"prompts": [
{}
],
"quantities": [
{
"axis_ids": [
"<string>"
],
"capture": "<string>",
"collect": "<string>",
"description": "<string>",
"display_name": "<string>",
"format": "<string>",
"former_ids": [
"<string>"
],
"measure_kind": "<string>",
"quantity_id": "<string>",
"referenced_by": [
"<string>"
],
"source_names": {},
"sources": [
"<string>"
],
"subject_type_id": "<string>",
"time": "<string>",
"unit": "<string>",
"verified_from": "<string>"
}
],
"record_query_rollups": [
"<string>"
],
"relations": [
{
"cardinality": "<string>",
"edge_label": "<string>",
"from_type_id": "<string>",
"inverse_cardinality": "<string>",
"inverse_label": "<string>",
"relation_id": "<string>",
"to_type_id": "<string>",
"traversal_path": [
"<string>"
]
}
],
"reuse_declarations": true,
"supports_record_query_relations": true,
"supports_subject_layouts": true,
"version": "<string>",
"view_overrides": [
{}
],
"viewer_audiences": [
{}
],
"viewer_rosters": [
"<string>"
],
"views": [
{}
],
"waiting_on": [
{}
],
"walls": [
{}
],
"warnings": [
"<string>"
],
"worlds": [
{
"display_name": "<string>",
"ephemeral": true,
"parent_world_id": "<string>",
"scope_entity_ids": [
"<string>"
],
"status": "<string>",
"world_id": "<string>"
}
]
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}{
"code": "<string>",
"error": "<string>",
"status": "failed",
"details": {},
"path": "<string>",
"request_id": "<string>",
"result": {}
}Authorizations
apiKeyapiKey
An API key issued with object_model scopes: Authorization: Bearer sk_…. The scopes: object_model:records:read, object_model:records:write, object_model:facts:read, object_model:facts:write, object_model:model:read, object_model:model:configure, object_model:actions:run, object_model:changes:read. An operation's security lists the scopes it needs; several entries mean any one of them will do. A person field (ref(user), ref_list(user)) holds a user id: look people up by email or id with GET /v1/users, outside this API, with a key that also has users:read.
Response
Answered.
