Skip to main content
GET
/
v2
/
workspaces
/
{workspaceId}
/
pages
List Pages
curl --request GET \
  --url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/pages \
  --header 'Authorization: Bearer <token>'
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/pages', 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}/pages"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
[
  {
    "name": {
      "fr": "Bonjour",
      "en": "Hello"
    },
    "description": {
      "fr": "Bonjour",
      "en": "Hello"
    },
    "workspaceId": "<string>",
    "workspaceSlug": "<string>",
    "id": "<string>",
    "slug": "<string>",
    "blocks": [
      {
        "slug": "<string>",
        "appInstance": "<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>"
  }
]
{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}
{
"error": "AuthenticationError",
"message": "Unauthenticated"
}
{
"error": "ForbiddenError",
"message": "Forbidden"
}
{
"error": "ObjectNotFound",
"message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Workspace id

Response

Success Response

name
required
Example:
{ "fr": "Bonjour", "en": "Hello" }
description
Example:
{ "fr": "Bonjour", "en": "Hello" }
workspaceId
string
workspaceSlug
string
id
string
slug
string
blocks
object[]
labels
string[]
Pattern: ^[0-9A-Za-z._:-]{2,60}$
events
object
createdBy
string
updatedBy
string
createdAt
string
updatedAt
string
permissions
object
customDomains
string[]
colorScheme
enum<string>
Available options:
auto,
light,
dark
checksum
string
favicon
string