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

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

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

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

print(response.text)
[
  {
    "description": {
      "fr": "Bonjour",
      "en": "Hello"
    },
    "name": "<string>",
    "createdAt": "<string>",
    "repository": {
      "id": "<string>"
    }
  }
]
{
"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

description
required
Example:
{ "fr": "Bonjour", "en": "Hello" }
name
string

Version name. If left empty, will be auto generated

createdAt
string
repository
object