tracking
Request Analytics
Changed onpost/api/public/v2/requests/analytics
Request
- Base URLhttps://docs.promptlayer.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"filter_group": {
"logic": "AND",
"filters": [
{
"field": "engine",
"operator": "is",
"value": "gpt-4o"
}
]
},
"sort_by": "request_start_time",
"sort_order": "desc"
}Response
Aggregated analytics for the matching request logs.
Changes
- info
added the new optional request property
- info
added the new
agent_intentenum value to the request property//// - info
added the new
user_intentenum value to the request property//// - info
added the optional property
to the response with the status
- info