Skip to main content
GET
/
api
/
v1
/
llm
/
feedback
/
export
/
status
Python (SDK)
from mka1 import SDK


with SDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:

    res = sdk.llm.feedback.get_export_status()

    # Handle response
    print(res)
{
  "status": "COMPLETED",
  "startTime": "2024-01-15T10:30:00Z",
  "closeTime": "2024-01-15T10:31:30Z",
  "progress": {
    "stage": "completed",
    "recordCount": 120,
    "completionCount": 70,
    "responseCount": 50,
    "parquetBytes": 24576,
    "message": "Export completed successfully"
  },
  "result": {
    "outputPath": "s3://exports/feedback/2024-01-15",
    "completionsFile": "s3://exports/feedback/2024-01-15/completions.parquet",
    "responsesFile": "s3://exports/feedback/2024-01-15/responses.parquet",
    "recordCount": 120,
    "completionFeedbackCount": 70,
    "responseFeedbackCount": 50,
    "exportedAt": 1705314690000,
    "durationMs": 90000
  }
}

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Response

200 - application/json

OK

Response containing the status and progress of the feedback export job.

status
enum<string>
required

Current status of the export job

Available options:
NOT_FOUND,
RUNNING,
COMPLETED,
FAILED,
CANCELLED,
TERMINATED,
CONTINUED_AS_NEW,
TIMED_OUT
startTime
string<date-time>

When the export job started

closeTime
string<date-time>

When the export job completed (if finished)

progress
object

Progress information (available when running)

result
object

Export result (only present when status is COMPLETED)

error
string

Error message (only present when status is FAILED)