Logs
Authorization
AuthorizationRequiredBearer <token>API key from Settings page. Keys start with p4_live_ prefix.
In: header
Query Parameters
limitintegerResults per page (max 100)
Default:
50Maximum: 100cursorstringCursor for pagination. Use next_cursor from a previous response to fetch the next page.
statusstringFilter by generation status
Value in:
"success" | "error"template_idstringFilter by template ID
fromstringStart date (ISO 8601)
Format:
"date-time"tostringEnd date (ISO 8601)
Format:
"date-time"Logs with cursor pagination
Update a template
Update a template's HTML, format, or sample data. Only provided fields are updated. Requires `full_access` API key scope.
Get usage statistics
Returns aggregated usage statistics including template count, total renders, success rate, average duration, and total size. Optionally filter by time period. Session auth only.