Skip to main content
GET
/
api
/
v1
/
llm
/
feedback
/
export
/
status
Typescript (SDK)
import { SDK } from "@meetkai/mka1";

const sdk = new SDK({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await sdk.llm.feedback.getExportStatus({});

  console.log(result);
}

run();
{
  "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

Authenticate with your MKA1 API key at the API gateway: Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, also send X-On-Behalf-Of to identify the end user making the request.

Headers

X-On-Behalf-Of
string

Optional external user identifier for multi-user server-side integrations. Use this when acting on behalf of one of your end users.

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)