curl --request GET \
--url https://api.eda.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>"
],
"colorScheme": "auto",
"checksum": "<string>",
"favicon": "<string>",
"styles": "<string>",
"onInit": "<string>",
"updateOn": "<string>",
"notifyOn": "<string>",
"automation": "<string>",
"public": true,
"apiKey": "<string>",
"clientId": "<string>"
}Fetch a page
curl --request GET \
--url https://api.eda.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>"
],
"colorScheme": "auto",
"checksum": "<string>",
"favicon": "<string>",
"styles": "<string>",
"onInit": "<string>",
"updateOn": "<string>",
"notifyOn": "<string>",
"automation": "<string>",
"public": true,
"apiKey": "<string>",
"clientId": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Success Response
Show child attributes
Map block slugs to their specification
Show child attributes
Block
Show child attributes
A block can be a javascript bundled file. Host it on the internet and put its url here.
Show child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Show child attributes
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
Show child attributes
string, number, object, array, boolean, localized:string, localized:number, localized:boolean Show child attributes
{
"Dialog Manager.config": {
"url": "https://cdn-assets.prisme.ai/widgets/nlu/setup-widget/main.js"
}
}Show child attributes
Show child attributes
"prismeaiMessenger.message"
Show child attributes
Show child attributes
auto, light, dark Indicates whether this page is public. Reflects page permissions and cannot be set directly
Was this page helpful?