List Workspaces
curl --request GET \
--url https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces \
--header 'Authorization: Bearer <token>'import requests
url = "https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "56d43968-e31d-4010-9b75-018a79a51b17",
"name": "workspace 1",
"createdBy": "1673d60f-a0ea-41f4-9420-c91dbc2864f5",
"organizationId": "d0d3c83f-29ed-4f2e-899d-1bfa00eb3cef",
"description": "sample description",
"createdAt": "2025-04-17T08:08:15.687751Z",
"defaultWorkspace": false
},
{
"id": "78cf8c83-8569-4d7c-a1ce-404dee7c5c6b",
"name": "workspace 2",
"createdBy": "1673d60f-a0ea-41f4-9420-c91dbc2864f5",
"organizationId": "d0d3c83f-29ed-4f2e-899d-1bfa00eb3cef",
"description": "sample description",
"createdAt": "2025-04-17T08:05:58.312996Z",
"defaultWorkspace": false
},
{
"id": "eaa442d7-82ac-4a65-b302-093d0465eb67",
"name": "Default Workspace",
"createdBy": "1673d60f-a0ea-41f4-9420-c91dbc2864f5",
"organizationId": "d0d3c83f-29ed-4f2e-899d-1bfa00eb3cef",
"description": "Default Workspace",
"createdAt": "2025-03-25T12:28:51.147125Z",
"defaultWorkspace": true
}
]Organization -- Workspaces
List Workspaces
Returns all workspaces under the specified Organization.
A Workspace is a collaborative environment within an Organization that groups Projects together. It facilitates team collaboration, resource management, and organization of data operations.
The hierarchical structure in Peaka is:
Organization (top-level) → Workspace → Project
Projects contain data catalogs and workflows that teams manage within a Workspace.
GET
/
organizations
/
{organizationId}
/
workspaces
List Workspaces
curl --request GET \
--url https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces \
--header 'Authorization: Bearer <token>'import requests
url = "https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner.peaka.studio/api/v1/organizations/{organizationId}/workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "56d43968-e31d-4010-9b75-018a79a51b17",
"name": "workspace 1",
"createdBy": "1673d60f-a0ea-41f4-9420-c91dbc2864f5",
"organizationId": "d0d3c83f-29ed-4f2e-899d-1bfa00eb3cef",
"description": "sample description",
"createdAt": "2025-04-17T08:08:15.687751Z",
"defaultWorkspace": false
},
{
"id": "78cf8c83-8569-4d7c-a1ce-404dee7c5c6b",
"name": "workspace 2",
"createdBy": "1673d60f-a0ea-41f4-9420-c91dbc2864f5",
"organizationId": "d0d3c83f-29ed-4f2e-899d-1bfa00eb3cef",
"description": "sample description",
"createdAt": "2025-04-17T08:05:58.312996Z",
"defaultWorkspace": false
},
{
"id": "eaa442d7-82ac-4a65-b302-093d0465eb67",
"name": "Default Workspace",
"createdBy": "1673d60f-a0ea-41f4-9420-c91dbc2864f5",
"organizationId": "d0d3c83f-29ed-4f2e-899d-1bfa00eb3cef",
"description": "Default Workspace",
"createdAt": "2025-03-25T12:28:51.147125Z",
"defaultWorkspace": true
}
]
Authorizations
Use the Authorization header with the value 'Bearer ' to authenticate. Partner API Keys have full access; Project API Keys are limited to their project scope. Learn more: https://docs.peaka.com/api-reference/authentication
Response
200 - application/json
List of Workspaces