curl --request GET \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/pages/{slug} \
--header 'Authorization: Bearer <token>'{
"slug": "<string>",
"appInstances": [
{
"slug": "<string>",
"blocks": {
"Dialog Manager.config": {
"url": "https://cdn-assets.prisme.ai/widgets/nlu/setup-widget/main.js"
}
}
}
],
"name": {
"fr": "Bonjour",
"en": "Hello"
},
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"workspaceId": "<string>",
"workspaceSlug": "<string>",
"id": "<string>",
"blocks": [
{
"slug": "<string>",
"appInstance": "<string>",
"onInit": "<string>",
"updateOn": "<string>",
"automation": "<string>"
}
],
"labels": [
"<string>"
],
"events": {
"emit": [
"<string>"
],
"listen": [
"<string>"
],
"autocomplete": [
{
"event": "prismeaiMessenger.message",
"autocomplete": {}
}
]
},
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"permissions": {},
"customDomains": [
"<string>"
],
"checksum": "<string>",
"favicon": "<string>",
"styles": "<string>",
"onInit": "<string>",
"updateOn": "<string>",
"notifyOn": "<string>",
"automation": "<string>",
"public": true,
"apiKey": "<string>",
"clientId": "<string>"
}Get Page
Fetch a page
curl --request GET \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/pages/{slug} \
--header 'Authorization: Bearer <token>'{
"slug": "<string>",
"appInstances": [
{
"slug": "<string>",
"blocks": {
"Dialog Manager.config": {
"url": "https://cdn-assets.prisme.ai/widgets/nlu/setup-widget/main.js"
}
}
}
],
"name": {
"fr": "Bonjour",
"en": "Hello"
},
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"workspaceId": "<string>",
"workspaceSlug": "<string>",
"id": "<string>",
"blocks": [
{
"slug": "<string>",
"appInstance": "<string>",
"onInit": "<string>",
"updateOn": "<string>",
"automation": "<string>"
}
],
"labels": [
"<string>"
],
"events": {
"emit": [
"<string>"
],
"listen": [
"<string>"
],
"autocomplete": [
{
"event": "prismeaiMessenger.message",
"autocomplete": {}
}
]
},
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"permissions": {},
"customDomains": [
"<string>"
],
"checksum": "<string>",
"favicon": "<string>",
"styles": "<string>",
"onInit": "<string>",
"updateOn": "<string>",
"notifyOn": "<string>",
"automation": "<string>",
"public": true,
"apiKey": "<string>",
"clientId": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Success Response
Hide child attributes
Hide child attributes
Map block slugs to their specification
- Option 1
- Option 2
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 Hide child attributes
Hide child attributes
{
"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 Hide child attributes
Hide child attributes
{
"type": "string",
"title": { "en": "User ID" },
"description": { "en": "The unique identifier of the user" },
"secret": { "type": "boolean" },
"event": { "type": "boolean" }
}{
"Dialog Manager.config": {
"url": "https://cdn-assets.prisme.ai/widgets/nlu/setup-widget/main.js"
}
}^[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 Indicates whether this page is public. Reflects page permissions and cannot be set directly
Was this page helpful?