Skip to main content
POST
/
workspaces
Create a workspace
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({name: 'Production', slug: 'production'})
};

fetch('https://api.phaseo.app/v1/workspaces', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": {
    "id": "33333333-3333-4333-8333-333333333333",
    "name": "Production",
    "slug": "production",
    "created_by": "user_abc123",
    "created_at": "2026-04-28T12:00:00Z",
    "updated_at": "2026-04-28T12:15:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint requires a management API key. Standard Gateway API keys are not accepted.
Creates a workspace under the authenticated owner and returns the new workspace record.

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
name
string
required
Required string length: 1 - 100
Example:

"Production"

slug
string
Required string length: 1 - 50
Pattern: ^[a-z0-9-]+$
Example:

"production"

Response

Workspace created

data
object
required
Last modified on April 29, 2026