Skip to main content
POST
/
api
/
v2
/
companies
/
{id}
/
workspaces
/
create
Create a workspace
curl --request POST \
  --url https://paradigm.lighton.ai/api/v2/companies/{id}/workspaces/create/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "members": [
    123
  ],
  "groups": [
    123
  ],
  "document_upload_method": "manual"
}
'
{
  "id": 123,
  "name": "<string>",
  "workspace_type": "<string>",
  "document_upload_method": "<string>",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "summaries": [
    {
      "language": "<string>",
      "summary": "<string>"
    }
  ],
  "user_role": "<string>",
  "collection": {
    "id": 123,
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

The unique identifier of the company.

Body

V2 API: Uses flat structure with separate members and groups fields

name
string
required
description
string
required
members
integer[]
groups
integer[]
document_upload_method
enum<string>
default:manual

Method for adding documents to this workspace

  • manual - manual
  • synced - synced
Available options:
manual,
synced

Response

201 - application/json
id
integer
required
name
string
required
workspace_type
string
required
document_upload_method
string
required
description
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
summaries
object[]
required
user_role
string
required
collection
object
required