List workspaces of a company
curl --request GET \
--url https://api.lighton.ai/api/v2/companies/{id}/workspaces/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lighton.ai/api/v2/companies/{id}/workspaces/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lighton.ai/api/v2/companies/{id}/workspaces/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"results": [
{
"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>"
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Workspaces
List workspaces of a company
This endpoint allows you to create a workspace within a specific company.
This is useful for organizing and managing different projects or groups within the company.
It is restricted to admin and company admin users.
GET
/
api
/
v2
/
companies
/
{id}
/
workspaces
/
List workspaces of a company
curl --request GET \
--url https://api.lighton.ai/api/v2/companies/{id}/workspaces/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lighton.ai/api/v2/companies/{id}/workspaces/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lighton.ai/api/v2/companies/{id}/workspaces/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"results": [
{
"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>"
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the company.
Query Parameters
A page number within the paginated result set.