Python
Default
from portkey_ai import Portkeyportkey = Portkey( api_key="PORTKEY_API_KEY")res = portkey.logs.exports.create( filters={ 'time_of_generation_min': "2024-10-20", 'time_of_generation_max': "2024-10-30" }, workspace_id="WORKSPACE_ID", description="This is random description", requested_data=[ "id", "trace_id", "created_at", "request", "response", "is_success", "ai_org", "ai_model", "req_units", "res_units", "total_units", "request_url", "cost", "cost_currency", "response_time", "response_status_code", "mode", "config", "prompt_slug", "metadata" ])print(res)
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "total": 123, "object": "export" }
Show child attributes
Successful response
The unique identifier of the updated export
The total number of items in the export
The type of the object
export
Was this page helpful?