List Log Exports

Get all logs exports

get
Authorizations
Query parameters
workspace_idstringOptional
Responses
200

Successful response

application/json
get
from portkey_ai import Portkey

portkey = Portkey(
  api_key="PORTKEY_API_KEY"
)

res = portkey.logs.exports.list(
  workspace_id="WORKSPACE_ID"
)

print(res)
200

Successful response

{
  "object": "list",
  "total": 1,
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "organisation_id": "123e4567-e89b-12d3-a456-426614174000",
      "filters": {
        "time_of_generation_min": "2025-08-05T20:34:00.692Z",
        "time_of_generation_max": "2025-08-05T20:34:00.692Z",
        "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-08-05T20:34:00.692Z",
      "last_updated_at": "2025-08-05T20:34:00.692Z",
      "created_by": "123e4567-e89b-12d3-a456-426614174000",
      "workspace_id": "123e4567-e89b-12d3-a456-426614174000",
      "object": "export"
    }
  ]
}

Last updated

Was this helpful?