Skip to main content
GET
Run a custom report

Authorizations

Authorization
string
header
required

Supabase JWT — Authorization: Bearer <token>.

Query Parameters

merchant_id
string<uuid>

Optional merchant to scope to. Admins and sub-merchant operators only; other callers always use their token's merchant.

Example:

"28106cba-1c27-4e53-b149-32113e5e8e31"

id
string
required

Report id (from list_reports): a custom report's uuid, or a built-in report id (builtin:, from list_reports scope builtin).

Example:

"builtin:candidate_pipeline"

section
string

Built-in reports only: run only this section (ids in list_reports). Default: every section.

Pattern: ^[a-z][a-z0-9_]{0,40}$
from
string

Built-in reports only: first day of the period (YYYY-MM-DD, UTC, inclusive). Default: 30 days before to (90 for fairness).

Pattern: ^\d{4}-\d{2}-\d{2}$
to
string

Built-in reports only: last day of the period (YYYY-MM-DD, UTC, inclusive). Default: today. At most 400 days after from.

Pattern: ^\d{4}-\d{2}-\d{2}$
position_id
string<uuid>

Built-in reports only: one position (position_def_set.id), for the sections that take it (filters in list_reports).

interview_id
string<uuid>

Built-in reports only: one interview (interview_def_set.id), for the sections that take it. Not with position_id.

include_candidates
enum<string>
default:false

Built-in reports only: also run the sections that list candidates by name (candidates true in list_reports). Default false. Every such read is recorded in the audit log.

Available options:
true,
false
Example:

"false"

limit
integer

Built-in reports only: rows per section (1 to 500). Default 50, or 20 for a section of large rows (ATS jobs).

Required range: 1 <= x <= 500
offset
integer | null

Built-in reports only: rows to skip in each section (default 0); see each block's pagination.

Required range: x >= 0
stage
enum<string>

builtin:fairness_monitoring only: pre_screening, ai_interview (default) or final.

Available options:
pre_screening,
ai_interview,
final
filters
string

Optional JSON ReportFilters to apply on top, e.g. {"period":{"preset":"last_month"}}.

block_id
string

Run only this block.

draft
enum<string>
default:false

Run the unpublished draft instead (only if you can edit the report).

Available options:
true,
false
Example:

"false"

Response

Block results.

filters
object
required

The filters the blocks ran with (custom: report defaults, then your saved filters, then the ones you passed; built-in: period, position_id or interview_id, stage, include_candidates, limit, offset).

blocks
object[]
required

One result per block. A built-in report returns one per section: block_id is the section id, plus title, candidates (lists candidates by name), columns, rows and pagination {limit, offset, total (null when unknown), has_more}. A section that cannot run for you is ok=false with the reason.

report_id
string<uuid>

The custom report that ran.

builtin_id
string

The built-in report that ran (instead of report_id).

kind
enum<string>

builtin for a built-in report; absent for a custom report.

Available options:
builtin
title
string
description
string

Built-in reports: what the report shows.

admin_url
string

Built-in reports: the report in the JobMojito admin.

version
integer
{key}
unknown