v2

latestOpenAPI 3.1.02026-07-26143251806.6 KB
tables

Import Request Logs Into Table Sheet

Start an asynchronous request-history import into an existing Table sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.

post/api/public/v2/tables/{table_id}/sheets/{sheet_id}/imports/request-logs

Path parameters

table_idstring uuid required

Table ID.

sheet_idstring uuid required

Table sheet ID.

Headers

X-API-KEYstring required

Your PromptLayer API key. The key's workspace scopes table resources for this request.

Request body

qstring nullable

Free-text request-log search query applied with filter_group.

sort_by'request_start_time' | 'input_tokens' | 'output_tokens' | 'cost' | 'latency_ms' | 'status' nullable

Field to sort matching request logs before import.

sort_order'asc' | 'desc' nullable

Sort direction. Must be provided together with sort_by.

metadata_cost_breakdown_keystring nullable

Request-log query metadata key used by shared request-log query payloads.

operation_idstring nullable

Optional client-provided operation ID. A UUID is generated when omitted.

request_log_idsinteger[] nullable

Specific request log IDs to import.

variables_to_parsestring[]

Input variable names to parse from matching request logs.

include_fieldsstring[] nullable

Additional request log fields to include as columns.

limitinteger nullable

Maximum number of matching request logs to import.

Response

Request-history import queued.

successboolean required
messagestring required
operation_idstring required
status_urlstring required