Retrieve a Log Export

Get a specific logs export

get
Authorizations
Path parameters
exportIdstringRequired
Responses
200
Successful response
application/json
get
from portkey_ai import Portkey

portkey = Portkey(
  api_key="PORTKEY_API_KEY"
)

res = portkey.logs.exports.retrieve(
  export_id="EXPORT_ID"
)

print(res)
200

Successful response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "organisation_id": "123e4567-e89b-12d3-a456-426614174000",
  "filters": {
    "time_of_generation_min": "2025-07-02T02:31:14.324Z",
    "time_of_generation_max": "2025-07-02T02:31:14.324Z",
    "total_units_min": 1,
    "total_units_max": 1,
    "cost_min": 1,
    "cost_max": 1,
    "ai_model": "text",
    "prompt_token_min": 1,
    "prompt_token_max": 1,
    "completion_token_min": 1,
    "completion_token_max": 1,
    "status_code": "text",
    "metadata": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "ai_org_model": "openai__gpt-3.5-turbo, anthropic__claude-2.1",
    "weighted_feedback_min": 1,
    "weighted_feedback_max": 1,
    "virtual_keys": "text",
    "trace_id": "text",
    "configs": "text",
    "workspace_slug": "text",
    "prompt_slug": "text"
  },
  "requested_data": [
    "id"
  ],
  "status": "draft",
  "description": "text",
  "created_at": "2025-07-02T02:31:14.324Z",
  "last_updated_at": "2025-07-02T02:31:14.324Z",
  "created_by": "123e4567-e89b-12d3-a456-426614174000",
  "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
  "object": "export"
}

Last updated

Was this helpful?