Skip to main content
POST
/
workspaces
Create workspace
curl --request POST \
  --url https://www.orgo.ai/api/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "my-workspace"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "my-workspace",
  "created_at": "2024-01-15T10:30:00Z",
  "computer_count": 0
}
Creates a new workspace to organize your computers.
Workspaces are containers for computers. Use them to separate different projects, environments, or teams.

Request

name
string
required
Unique workspace name. Must contain only letters, numbers, hyphens, and underscores.

Response

Returns the created workspace object.
id
string
Unique workspace identifier.
name
string
Workspace name.
created_at
string
ISO 8601 timestamp.
computer_count
integer
Number of computers (always 0 for new workspaces).

Example

curl -X POST https://www.orgo.ai/api/workspaces \
  -H "Authorization: Bearer $ORGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "production"}'

Response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "production",
  "created_at": "2024-01-15T10:30:00Z",
  "computer_count": 0
}

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Body

application/json
name
string
required

Unique workspace name

Required string length: 1 - 64
Example:

"my-workspace"

Response

Workspace created

id
string

Unique workspace identifier

Example:

"550e8400-e29b-41d4-a716-446655440000"

name
string

Workspace name

Example:

"production"

created_at
string<date-time>

Creation timestamp

computer_count
integer

Number of computers in this workspace

Example:

3