Skip to main content
GET
/
api
/
v1
/
jobs
/
export
Export jobs as CSV
curl --request GET \
  --url http://localhost:3051/api/v1/jobs/export \
  --header 'Authorization: Bearer <token>'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.omnifence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Requires the job:read scope. Requests without this scope receive a 403 FORBIDDEN response. See authentication.
The response streams as text/csv; charset=utf-8 with a UTF-8 BOM so spreadsheet apps decode prompts correctly.

Date range

Both from and to are required ISO 8601 date-time strings. Jobs are filtered by created_at (from inclusive, to exclusive). The maximum window is 366 days; longer ranges return 400 INVALID_REQUEST.

CSV columns

ColumnDescription
job_idUUID of the job
typepre or post
statusqueued, processing, completed, or failed
is_prohibitedtrue if rejected, false if passed, or empty if not yet decided
created_atISO 8601 timestamp the job was submitted
completed_atISO 8601 timestamp the job finished, or empty
promptOriginal prompt submitted with the job
reasonWhy a prompt was rejected by the prohibition check
category_ai_adult_generaltrue, false, or empty if no moderation log exists
category_underagetrue, false, or empty if no moderation log exists
category_nsfwtrue, false, or empty if no moderation log exists
Empty category cells distinguish jobs that have not yet been evaluated from jobs that were evaluated and found clean (false).

Example

curl -G "https://api.example.com/api/v1/jobs/export" \
  -H "Authorization: Bearer $API_KEY" \
  --data-urlencode "from=2026-04-01T00:00:00Z" \
  --data-urlencode "to=2026-05-01T00:00:00Z" \
  --output jobs-april.csv
to is exclusive, so use the start of the day after your last desired date (e.g. 2026-05-01T00:00:00Z to include all of April).

Authorizations

Authorization
string
header
required

API key from the Stars dashboard

Query Parameters

from
string<date-time>
required

Inclusive lower bound on job created_at (ISO 8601).

to
string<date-time>
required

Exclusive upper bound on job created_at (ISO 8601). Use the start of the day after your last desired date to include the full final day.

Response

200 - text/csv

CSV stream of jobs.

The response is of type file.