Package Log Entries into a downloadable file
Availability: this endpoint is an optional feature that is disabled by default. It has to be enabled for your Cognigy.AI environment before it can be used. While it is disabled, requests to it return 404 Not Found. Contact Cognigy Support to have the feature enabled for your environment.
Starts packaging all log entries matching the given filters into a file on disk and returns immediately with the logsFileId of that file. Download the file via /v2.1/projects/{projectId}/logs/package/{logsFileId}/download once packaging has finished. Time ranges larger than one hour are queried in one-hour windows to keep the database load low. If an identical packaging request (same filters) is already in progress, the logsFileId of that packaging is returned instead of starting a new one. Packaged files expire after a configured retention time.
Authorizations
Supply the API Key in the HTTP-Header
Headers
The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.
application/json, application/hal+json, application/xml, text/xml, text/csv Path Parameters
The unique identifier for the Project.
24^[a-z0-9]{24}$Body
Log levels to include (e.g. info, warning, error)
Filter by the user Id of the log entry
Filter by the Flow name of the log entry
The start date for filtering log entries (ISO 8601 format). If not provided, defaults to 1 hour before endDate.
"2025-08-11T10:00:00.000Z"
The end date for filtering log entries (ISO 8601 format). If not provided, defaults to the current time.
"2025-08-11T11:00:00.000Z"