curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/workspaces \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/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": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}List workspaces visible to observability users
Wraps the platform /v2/workspaces API using the workspace’s
superAdminToken so any user with observability:read can list
every workspace, not only the ones they personally have access to.
Returns the raw shape forwarded from the platform API (an array
of workspace summaries).
Requires observability:read permission. Rate-limited to 100
calls per minute.
curl --request GET \
--url https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/workspaces \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/v2/workspaces/slug:ai-governance-v2/webhooks/v1/observability/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": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Query Parameters
Page index (forwarded as-is).
Max items per page (forwarded as-is).
Sort expression (forwarded as-is).
50Free-text search (forwarded as-is).
200Comma-separated workspace ids (forwarded URL-encoded).
2000Was this page helpful?