Skip to main content
POST
/
v1
/
workspaces
Create a workspace
curl --request POST \
  --url https://ai.liara.ir/v1/workspaces \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "workspace": {
    "_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345"

Body

application/json
name
string
required

Unique workspace name (lowercase, 3-50 chars). Cannot be "liara".

Required string length: 3 - 50
Pattern: ^[a-z0-9][a-z0-9-]+[a-z0-9]$
plan
enum<string>
required

Workspace plan tier

Available options:
base,
standard,
pro

Response

Workspace created

workspace
object