Export jobs as CSV
curl --request GET \
--url http://localhost:3051/api/v1/jobs/export \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3051/api/v1/jobs/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3051/api/v1/jobs/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3051",
CURLOPT_URL => "http://localhost:3051/api/v1/jobs/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3051/api/v1/jobs/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3051/api/v1/jobs/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3051/api/v1/jobs/export")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body"<string>"Jobs
Export jobs as CSV
Download a CSV of moderation jobs in a date range, including prompt and category metadata.
GET
/
api
/
v1
/
jobs
/
export
Export jobs as CSV
curl --request GET \
--url http://localhost:3051/api/v1/jobs/export \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3051/api/v1/jobs/export"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3051/api/v1/jobs/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3051",
CURLOPT_URL => "http://localhost:3051/api/v1/jobs/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3051/api/v1/jobs/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3051/api/v1/jobs/export")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3051/api/v1/jobs/export")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body"<string>"Requires the
job:read scope. Requests without this scope receive a 403 FORBIDDEN response. See
authentication.text/csv; charset=utf-8 with a UTF-8 BOM so spreadsheet apps decode prompts correctly.
Date range
Bothfrom 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
| Column | Description |
|---|---|
job_id | UUID of the job |
type | The job’s modality. See below for the full set |
status | queued, processing, completed, or failed |
is_prohibited | true if rejected, false if passed, or empty if not yet decided |
created_at | ISO 8601 timestamp the job was submitted |
completed_at | ISO 8601 timestamp the job finished, or empty |
api_key_id | The API key the job was submitted with, or empty. See below |
api_key_name | That key’s current name, or empty |
prompt | Original prompt submitted with the job |
reason | Why the content was rejected |
category_nsfw | true, false, or empty. See below |
type values
The column is written verbatim from the stored job, so a range that reaches back far enough can
contain more than the current values. Validate against the full set:
text,image,video,audio: the moderation modalities.chatis a retired modality kept for historical jobs.pre,post: retired values on jobs created before the modality split. The API never writes them for new jobs, but existing rows keep them.generate,companion_chat,companion_retarget,companion_media_tag: non-moderation job types. They appear only if your account uses them.
Empty API key cells
api_key_id is empty for a job that no API key submitted: one sent from the dashboard, and any job
created before key attribution shipped.
api_key_name is resolved when you run the export, not stored on the job, so it is also empty for a
key you never named and for one you have since deleted. api_key_id survives both, so group on it
rather than on the name.
Empty category_nsfw cells
category_nsfw is the only category column, and an empty cell means the job carries no NSFW label
rather than a clean one. Three different situations produce it:
- The job is a
text,chat,audio, orgeneratejob. The NSFW check does not apply to those, so they never carry the label, even when complete. - The job is an image or video job, but you disabled the NSFW check for your account.
- The job has not finished.
false cell means the NSFW check ran and found the content clean.
Example
curl -G "https://api.omnifence.ai/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
API key from the Omnifence dashboard
Query Parameters
Inclusive lower bound on job created_at (ISO 8601).
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.