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"
}{
"code": "BAD_REQUEST",
"message": "Bad Request",
"data": {
"errors": {
"id": [
"Invalid UUID"
],
"email": [
"Invalid email address"
]
}
}
}{
"code": "UNAUTHORIZED",
"message": "API key was revoked at 2025-8-24T02:29:50.000Z"
}{
"code": "NOT_FOUND",
"message": "Resource not found"
}Workspaces
Create workspace
Create a new workspace in the company
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"
}{
"code": "BAD_REQUEST",
"message": "Bad Request",
"data": {
"errors": {
"id": [
"Invalid UUID"
],
"email": [
"Invalid email address"
]
}
}
}{
"code": "UNAUTHORIZED",
"message": "API key was revoked at 2025-8-24T02:29:50.000Z"
}{
"code": "NOT_FOUND",
"message": "Resource not found"
}Authorizations
Company API key (starts with ord_c_)
Body
application/json
Required string length:
1 - 255Required string length:
1 - 48Pattern:
^(?=.{1,48}$)[a-z0-9]+(?:-[a-z0-9]+)*$IANA timezone identifier for the workspace (e.g., 'America/New_York', 'Europe/London', 'Asia/Tokyo')
Example:
"America/New_York"
Was this page helpful?