Skip to main content
GET
Render AI job visualization
Check that a job belongs to the user before you show them its chart. An organization API key can read every user’s jobs, so this endpoint returns the chart for any job ID you send. Call Get AI job status and compare its userId to the Omni user ID of the person in your app. If they don’t match, don’t show the chart.

Show the interactive chart page

With format=html, the response is a complete HTML page that contains the chart and its data. To show it in your app, use the mountOmniFrame helper in the @omni-co/embed SDK. The helper puts the page in a restricted iframe and sizes the iframe to the chart.

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

jobId
string<uuid>
required

The unique identifier of the AI job

Query Parameters

auto_vis
string
default:true

The literal string false disables automatic chart selection and returns a 204 if the job has no visualization. Any other string, including an empty string and 0, enables automatic selection. Defaults to true.

debug
string
default:false

Returns debug JSON instead of the rendered PNG when enabled. The strings false, 0, and the empty string disable debug; any other non-empty string, including true and 1, enables it. Defaults to false.

format
enum<string>
default:png

png returns the chart as an image. html returns a page that draws the chart interactively, with hover tooltips, a chart-type picker, and a table view. The page includes every row of the job's result, the same as the result endpoint. Defaults to png.

Available options:
png,
html
theme
enum<string>
default:light

The theme for the format=html page. Defaults to light.

Available options:
light,
dark

Response

Returns image/png by default, text/html when format=html, or application/json when debug is enabled or the underlying data is unavailable. Debug JSON contains the compiled visualization and query details, or diagnostic information when the data is unavailable.

The response is of type file.