Retrieve a company
curl --request GET \
--url https://api.lighton.ai/api/v2/companies/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lighton.ai/api/v2/companies/{id}"
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}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"max_users": 123,
"dpo_email": "jsmith@example.com",
"allow_company_admins_to_manage_sso": true,
"storage_limit_company_ws": 123,
"storage_limit_personal_ws": 123,
"storage_limit_custom_ws": 123,
"active_members_count": 123
}Companies
Retrieve a company
This endpoint allows you to retrieve detailed information about a specific company.
This is useful for accessing company data for administrative purposes, reporting, or integration with other systems.
GET
/
api
/
v2
/
companies
/
{id}
Retrieve a company
curl --request GET \
--url https://api.lighton.ai/api/v2/companies/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lighton.ai/api/v2/companies/{id}"
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}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"max_users": 123,
"dpo_email": "jsmith@example.com",
"allow_company_admins_to_manage_sso": true,
"storage_limit_company_ws": 123,
"storage_limit_personal_ws": 123,
"storage_limit_custom_ws": 123,
"active_members_count": 123
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
200 - application/json