curl --request GET \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"name": "<string>",
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"photo": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"blocks": {},
"slug": "<string>",
"id": "<string>",
"labels": [
"<string>"
],
"customDomains": [
"<string>"
],
"registerWorkspace": true,
"repositories": {},
"platformRepositories": {},
"secrets": {
"schema": {}
},
"events": {
"mapping": {},
"types": {}
},
"writeLock": {
"lockedAt": "<string>",
"lockedBy": "<string>",
"reason": "<string>"
},
"automations": {},
"pages": {},
"imports": {},
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Get Workspace
Fetch a workspace
curl --request GET \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"name": "<string>",
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"photo": "<string>",
"config": {
"schema": {},
"block": "<string>",
"value": "<unknown>"
},
"blocks": {},
"slug": "<string>",
"id": "<string>",
"labels": [
"<string>"
],
"customDomains": [
"<string>"
],
"registerWorkspace": true,
"repositories": {},
"platformRepositories": {},
"secrets": {
"schema": {}
},
"events": {
"mapping": {},
"types": {}
},
"writeLock": {
"lockedAt": "<string>",
"lockedBy": "<string>",
"reason": "<string>"
},
"automations": {},
"pages": {},
"imports": {},
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workspace id
Query Parameters
Optional version
Response
Success Response
^[0-9A-Za-zÀ-ÖØ-öø-ÿ ,.'- ]{1,60}$Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
Hide child attributes
Hide child attributes
Block
Hide child attributes
Hide child attributes
A block can be a javascript bundled file. Host it on the internet and put its url here.
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
A block can extends another one by giving its name here
default config applied to the Block. Usefull for extended Blocks.
Css applied to Block
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
^[0-9A-Za-z._:-]{2,60}$If true, make this workspace metadata available to all workspaces with this variable : {{global.workspacesRegistry[WORKSPACE_SLUG]}}
Remote versioning repositories
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
- Option 1
- Option 2
- Option 3
Hide child attributes
Hide child attributes
Sub-directory path within the repository where the workspace is stored
git, archive, filesystem read-write, read-only Only for platform repositories fetched from the Platform workspaces ; indicates which groups can be pulled/pushed
Platform remote versioning repositories
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
- Option 1
- Option 2
- Option 3
Hide child attributes
Hide child attributes
Sub-directory path within the repository where the workspace is stored
git, archive, filesystem read-write, read-only Only for platform repositories fetched from the Platform workspaces ; indicates which groups can be pulled/pushed
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
Hide child attributes
Hide child attributes
Custom mapping which will be directly sent to underlying database (Elasticsearch/Opensearch)
Custom configuration per event type
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Set this to true if you don't want your automation to be accessible outside of your app. Default is false.
false
Set this to true if you want to turn off this automation.
true
Unique & human readable id across current workspace's automations
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
- Option 1
- Option 2
- Option 3
- Option 4
Hide child attributes
Hide child attributes
["prismeaiMessenger.event"]
["2021-12-25T00:00", "* * 1 * *"]
"Set to true in order to activate HTTP endpoint. Slug will be trigger name by default"
^[0-9A-Za-z._:-]{2,60}$Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
"prismeaiMessenger.message"
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Page
Hide child attributes
Hide child attributes
^[0-9A-Za-z._:-]{2,60}$Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
"prismeaiMessenger.message"
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
auto, light, dark Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
App unique id
Unique & human readable id across current workspace's appInstances, which will be used to call this app automations
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
"prismeaiMessenger.message"
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Recursive reference to TypedArgument; nesting is truncated here to avoid the infinite expansion that crashes the API reference renderer.
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}
Defaults to the latest known app version
If disabled, this appInstance will be ignored during execution
^[0-9A-Za-z._:-]{2,60}$Was this page helpful?