Get company tools report
curl --request GET \
--url https://api.lighton.ai/api/v2/reporting/tools/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lighton.ai/api/v2/reporting/tools/"
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/reporting/tools/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reporting": [
{
"company": {
"id": 123,
"name": "<string>"
},
"dates": [
{
"date": "2023-12-25",
"tools": [
{
"name": "<string>",
"count": 123
}
],
"third_party_tools": [
{
"name": "<string>",
"count": 123
}
],
"agent_tools": [
{
"name": "<string>",
"count": 123
}
]
}
]
}
]
}Reporting
Get company tools report
This endpoint allows you to retrieve a company’s tools and third-party tools report.
The start date is required, but the end date is by default today.
It is restricted to admin and company admin users.
Admin users can optionally filter by company.
GET
/
api
/
v2
/
reporting
/
tools
/
Get company tools report
curl --request GET \
--url https://api.lighton.ai/api/v2/reporting/tools/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lighton.ai/api/v2/reporting/tools/"
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/reporting/tools/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"reporting": [
{
"company": {
"id": 123,
"name": "<string>"
},
"dates": [
{
"date": "2023-12-25",
"tools": [
{
"name": "<string>",
"count": 123
}
],
"third_party_tools": [
{
"name": "<string>",
"count": 123
}
],
"agent_tools": [
{
"name": "<string>",
"count": 123
}
]
}
]
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The unique identifier of the company (for admin users only).
The end date for the report (defaults to today).
The start date for the report.
Response
200 - application/json
Show child attributes
Show child attributes