Skip to main content
POST
/
workspaces
Create a new workspace
curl --request POST \
  --url https://lancepilot.com/api/v3/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "INTERNAL",
  "status": true
}
'
{
  "status": 201,
  "message": "Resource created successfully.",
  "data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Workspace creation parameters.

name
string
required

Unique name per user.

type
enum<string>
required

Type of workspace.

Available options:
INTERNAL,
PARTNER
status
boolean
required

Workspace status (active/inactive).

Response

status
integer
required
Example:

201

message
string
required
Example:

"Resource created successfully."

data
object
required

Created resource data.