Skip to main content
GET
/
workspaces
List accessible workspaces
curl --request GET \
  --url https://api.blaxel.ai/v0/workspaces \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.blaxel.ai/v0/workspaces"

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

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

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.blaxel.ai/v0/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://api.blaxel.ai/v0/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://api.blaxel.ai/v0/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://api.blaxel.ai/v0/workspaces")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.blaxel.ai/v0/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
[
  {
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "accountId": "<string>",
    "displayName": "My Workspace",
    "groupMappings": [
      {
        "groupName": "Engineering",
        "role": "admin"
      }
    ],
    "hipaaInfo": {
      "accountEnabled": true,
      "unsafe": {
        "enabled": true,
        "updatedAt": "<string>",
        "updatedBy": "<string>"
      }
    },
    "id": "<string>",
    "labels": {},
    "name": "my-workspace",
    "region": "us-west-2",
    "resourceCounts": {},
    "runtime": {
      "generation": "mk3",
      "sandbox": {
        "disableProcessLogging": true
      }
    },
    "status": "ready",
    "statusReason": "<string>"
  }
]
{
"error": "Resource already exists",
"code": 409,
"message": "Invalid request body"
}
{
"error": "Resource already exists",
"code": 409,
"message": "Invalid request body"
}

Authorizations

Authorization
string
header
required

OAuth2 authentication with JWT tokens

Response

successful operation

createdAt
string
read-only

The date and time when the resource was created

updatedAt
string
read-only

The date and time when the resource was updated

createdBy
string
read-only

The user or service account who created the resource

updatedBy
string
read-only

The user or service account who updated the resource

accountId
string

Workspace account id

displayName
string

Workspace display name

Example:

"My Workspace"

groupMappings
object[]

Group-to-role mappings for directory sync (SCIM) group membership

hipaaInfo
object

HIPAA compliance state for a workspace. accountEnabled mirrors the account-level hipaa_compliance addon (set server-side from operator tooling and Stripe billing events). unsafe records a per-workspace opt-out toggled from workspace settings; absent when the account does not have the addon.

id
string
read-only

Autogenerated unique workspace id

labels
object

Key-value pairs for organizing and filtering resources. Labels can be used to categorize resources by environment, project, team, or any custom taxonomy.

name
string

Workspace name

Example:

"my-workspace"

region
string

Workspace write region

Example:

"us-west-2"

resourceCounts
object
read-only

Per-resource counts (agents, functions, models, sandboxes, policies, jobs, volumes, drives, volumetemplates, integrationconnections, previews, customdomains, serviceaccounts, images). Only populated when GetWorkspace is called with ?countResources=true.

runtime
object

Runtime configuration for the workspace infrastructure

status
enum<string>
read-only

Workspace status (created, account_binded, account_configured, workspace_configured, ready, error)

Available options:
created,
account_binded,
account_configured,
workspace_configured,
ready,
error
Example:

"ready"

statusReason
string
read-only

Reason for current status (only set for error status)

Last modified on July 1, 2026