Skip to main content
POST
/
workspaces
Create a workspace
curl --request POST \
  --url https://slog.ai/workspaces \
  --header 'Content-Type: application/json' \
  --header 'slog-api-key: <api-key>' \
  --data '
{
  "name": "Acme Engineering",
  "slug": "acme-engineering"
}
'
{
  "workspace": {
    "id": "ws_01jqworksp001",
    "name": "Acme Engineering",
    "slug": "acme-engineering",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedAt": "2026-01-01T00:00:00.000Z"
  }
}

Authorizations

slog-api-key
string
header
required

API key obtained from the Slog dashboard or returned by the signup/invite-redeem flows. Pass as the slog-api-key header.

Body

application/json
name
string
required
Example:

"Acme Engineering"

slug
string
required

URL-safe identifier, unique across all workspaces.

Example:

"acme-engineering"

Response

Workspace created.

workspace
object