OJK Compliance

Get OJK export status

Get the status of an OJK audit export by id.

Enterprise Feature.

get/api/v1/ojk/audit/export/{id}

Request

Path parameters

idstring required

Export ID from the export request

Headers

X-Tenant-IDstring

Deprecated fallback. Every OJK route is scoped to the caller's ORGANIZATION via X-Org-ID (#3242); X-Tenant-ID is used only when X-Org-ID is absent, which covers single-identifier deployments where the two values are the same. When both are present the organization wins. A request carrying neither header, or a whitespace-only value, is rejected with 400 (code missing_org).

X-Org-IDstring

Organization identifier — the authoritative OJK scope. Set by the AxonFlow agent from the validated client credential on every proxied route, so a caller cannot choose it.

Response

Export status. ⚠️ Current implementation is a synchronous-echo stub: GetExportStatus performs no lookup and returns status: completed for ANY id (with an empty format and a fresh created_at) — it cannot distinguish a real export from a fabricated id (ojk_audit_export_service.go GetExportStatus). Exports run synchronously, so callers get the data inline from the POST and normally never need this endpoint.

export_idstring
statusstring

Always completed (the export runs synchronously)

framework'OJK_AI_GOVERNANCE' | 'UU_PDP' | 'BI_PJP' | 'OJK_BI_COMBINED'
format'json'

The format this response BODY is in, NOT the one that was requested. Always json: this endpoint writes Content-Type: application/json with the data inline, and no renderer for csv or xml exists on it. Rendered output is the compliance-report facade's job.

requested_format'csv' | 'xml'

Present ONLY when the caller asked for a format this endpoint does not produce. Its presence is the signal that the body is not what was requested. Absent on a json request.

format_notestring

Prose explanation of the discrepancy, present exactly when requested_format is. Exists so a human reading the artifact does not have to infer it from two fields disagreeing.

download_urlstring

Omitted for inline exports

created_atstring date-time
expires_atstring date-time

Example response

{
  "metadata": {
    "export_version": "1.0.0",
    "generated_by": "axonflow-ojk-module"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.