Get Workspaces
curl --request GET \
--url https://api.studio.prisme.ai/v2/workspaces \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/workspaces', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "<string>",
"name": "<string>",
"dirty": true,
"lastPush": {
"createdAt": "<string>",
"createdBy": "<string>",
"version": "<string>",
"repositoryId": "<string>"
}
}
]{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Prisme.ai Workspaces
Get Workspaces
Fetch my workspaces (those I own and shared ones)
GET
/
v2
/
workspaces
Get Workspaces
curl --request GET \
--url https://api.studio.prisme.ai/v2/workspaces \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/workspaces', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "<string>",
"name": "<string>",
"dirty": true,
"lastPush": {
"createdAt": "<string>",
"createdBy": "<string>",
"version": "<string>",
"repositoryId": "<string>"
}
}
]{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Query Parameters
Was this page helpful?