Get the Latest Log Entries
Gets the latest 100 log entries in a Project. Uses aggregation to first get the latest rows by _id, then sorts by timestamp. Supports cursor-based pagination using the _id field. If you provide an invalid cursor value, a 400 error will be returned. This endpoint is deprecated, use /v2.1/projects/{projectId}/logs/tail instead.
Request
- Base URLhttps://api-trial.cognigy.ai/testing
- Auth
- API key in header X-API-Key
- or API key in query parameter api_key
- or API key in header x-cxone-authorization
- or OAuth 2Authorization code/auth/oauth2/authorizePasswordToken URL/auth/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier for the Project.
Query parameters
The cursor that points to the next page of results. Use the nextCursor value returned in a previous response to request the next set of items.
The cursor that points to the previous page of results. Use the previousCursor value returned in a previous response to request the previous set of items.
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.
Response
Returns array of the latest Log Entries
Example response
{
"total": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.