Skip to main content
POST
/
workspaces
curl --request POST \
  --url https://app.tryordinal.com/api/v1/company/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Acme Corp",
  "slug": "acme-corp",
  "timezone": "America/New_York"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "slug": "<string>",
  "timezone": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Company API key (starts with ord_c_)

Body

application/json
name
string
required
Required string length: 1 - 255
slug
string
required
Required string length: 1 - 48
timezone
string
required

IANA timezone identifier for the workspace (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')

Example:

"America/New_York"

userIds
string<uuid>[]

Response

OK

id
string<uuid>
required
name
string
required
slug
string
required
timezone
string | null
required
createdAt
string<date-time>
required