curl --request GET \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/pages/{slug} \
--header 'Authorization: Bearer <token>'
{
"name": {
"fr": "Bonjour",
"en": "Hello"
},
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"workspaceId": "<string>",
"workspaceSlug": "<string>",
"id": "<string>",
"slug": "<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>",
"styles": "<string>",
"onInit": "<string>",
"updateOn": "<string>",
"notifyOn": "<string>",
"automation": "<string>",
"appInstances": [
{
"slug": "<string>",
"blocks": {
"Dialog Manager.config": {
"url": "https://cdn-assets.prisme.ai/widgets/nlu/setup-widget/main.js"
}
}
}
],
"public": true,
"apiKey": "<string>",
"clientId": "<string>",
"favicon": "<string>"
}
Fetch a page
curl --request GET \
--url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/pages/{slug} \
--header 'Authorization: Bearer <token>'
{
"name": {
"fr": "Bonjour",
"en": "Hello"
},
"description": {
"fr": "Bonjour",
"en": "Hello"
},
"workspaceId": "<string>",
"workspaceSlug": "<string>",
"id": "<string>",
"slug": "<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>",
"styles": "<string>",
"onInit": "<string>",
"updateOn": "<string>",
"notifyOn": "<string>",
"automation": "<string>",
"appInstances": [
{
"slug": "<string>",
"blocks": {
"Dialog Manager.config": {
"url": "https://cdn-assets.prisme.ai/widgets/nlu/setup-widget/main.js"
}
}
}
],
"public": true,
"apiKey": "<string>",
"clientId": "<string>",
"favicon": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success Response
The response is of type object
.
Was this page helpful?