Analytics API Documentation
GET: Retrieve Analytics
Description
This route is used to retrieve a list of analytics for a specific project and filter by date.
Method
GET
Query Parameters
startDate(string, optional): Start of the range, ISO 8601 (e.g.2026-11-01). Defaults to the current time.endDate(string, optional): End of the range, ISO 8601 (e.g.2026-11-19). Defaults to the current time.
Response
- Returns a JSON response with the list of analytics or an error message.
Status Codes
200 OK: analytics retrieved successfully (empty array if the project is not accessible to the token's organization).401 Unauthorized: missing or invalid Bearer token.500 Internal Server Error: Error listing analytics.
Throws
- An error if request validation or analytics retrieval fails.
Example cURL
curl --location 'https://app.ai12z.net/api/projects/{projectId}/analytics?startDate=2026-11-01&endDate=2026-11-19' \
--header 'Authorization: Bearer <YOUR_KEY>'
GET: Retrieve Analytics by topquestions
Description
This route is used to retrieve a list of analytics topquestions for a Agent and filter by date.
Method
GET
Query Parameters
startDate(string, optional): Start of the range, ISO 8601 (e.g.2026-11-01). Defaults to the current time.endDate(string, optional): End of the range, ISO 8601 (e.g.2026-11-19). Defaults to the current time.
Response
- Returns a JSON response with the list of analytics topquestions or an error message.
Status Codes
200 OK: analytics retrieved successfully (empty array if the project is not accessible to the token's organization).401 Unauthorized: missing or invalid Bearer token.500 Internal Server Error: Error listing analytics.
Throws
- An error if request validation or analytics retrieval fails.
Example cURL
curl --location 'https://app.ai12z.net/api/projects/{projectId}/analytics/topquestions?startDate=2026-11-01&endDate=2026-11-19' \
--header 'Authorization: Bearer <YOUR_KEY>'