Skip to main content
POST
/
api
/
v1
/
workspaces
Create workspace
curl --request POST \
  --url https://api.dualship.run/api/v1/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "metadata": {},
  "slug": "<string>"
}
'
{
  "created_at": "2024-01-15T10:30:00Z",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "logo_url": "https://cdn.example.com/logo.png",
  "metadata": {},
  "name": "Acme Corp",
  "slug": "acme-corp",
  "updated_at": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Body

application/json

Workspace details

name
string
required
Required string length: 2 - 100
metadata
object
slug
string
Required string length: 2 - 50

Response

Workspace created

Workspace information

created_at
string
Example:

"2024-01-15T10:30:00Z"

id
string
Example:

"550e8400-e29b-41d4-a716-446655440000"

logo_url
string
Example:

"https://cdn.example.com/logo.png"

metadata
object
name
string
Example:

"Acme Corp"

slug
string
Example:

"acme-corp"

updated_at
string
Example:

"2024-01-15T10:30:00Z"