Skip to main content
POST
/
workspaces
Create workspace tenant
curl --request POST \
  --url https://api.blaxel.ai/v0/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountId": "<string>",
  "displayName": "My Workspace",
  "labels": {},
  "name": "my-workspace",
  "region": "us-west-2",
  "runtime": {
    "generation": "mk3"
  }
}
'
{
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "createdBy": "<string>",
  "updatedBy": "<string>",
  "accountId": "<string>",
  "displayName": "My Workspace",
  "id": "<string>",
  "labels": {},
  "name": "my-workspace",
  "region": "us-west-2",
  "runtime": {
    "generation": "mk3"
  },
  "status": "ready",
  "statusReason": "<string>"
}

Authorizations

Authorization
string
header
required

OAuth2 authentication with JWT tokens

Body

application/json

Tenant container that groups all Blaxel resources (agents, functions, models, etc.) with shared team access control and billing.

accountId
string

Workspace account id

displayName
string

Workspace display name

Example:

"My Workspace"

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"

runtime
object

Runtime configuration for the workspace infrastructure

Response

successful operation

Tenant container that groups all Blaxel resources (agents, functions, models, etc.) with shared team access control and billing.

createdAt
string

The date and time when the resource was created

updatedAt
string

The date and time when the resource was updated

createdBy
string

The user or service account who created the resource

updatedBy
string

The user or service account who updated the resource

accountId
string

Workspace account id

displayName
string

Workspace display name

Example:

"My Workspace"

id
string

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"

runtime
object

Runtime configuration for the workspace infrastructure

status
enum<string>

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

Reason for current status (only set for error status)