Create Table Sheet Request Log Import
Import request history into an existing Table sheet.
request_log_ids or a request-log filter_group. You can also pass variables_to_parse, include_fields, and limit to control imported columns and rows. request_log_ids and limit support up to 50,000 rows.
Pass operation_id when you want a stable client-side identifier for polling and webhook correlation. If omitted, PromptLayer generates one.
The response returns an operation_id and status_url for polling with Get Table Sheet Import Operation.Authorizations
Headers
Your PromptLayer API key. The key's workspace scopes table resources for this request.
Body
Import request history into an existing Table sheet. Provide either request_log_ids or filter_group.
Nested filter group with AND/OR logic. Use this for complex queries.
Free-text request-log search query applied with filter_group.
Field to sort matching request logs before import.
request_start_time, input_tokens, output_tokens, cost, latency_ms, status Sort direction. Must be provided together with sort_by.
asc, desc Request-log query metadata key used by shared request-log query payloads.
Optional client-provided operation ID. A UUID is generated when omitted.
Specific request log IDs to import.
1 - 50000 elementsx >= 1Input variable names to parse from matching request logs.
Additional request log fields to include as columns.
Maximum number of matching request logs to import.
1 <= x <= 50000
