Skip to main content
POST
Bulk API
Current
Bulk API
Current version
The Bulk API queues many AI detection inputs as one asynchronous job. Submit the job with POST /bulk, poll GET /bulk/{bulk_id}, then page through item metadata or results.
Completion time depends on the number and length of submitted items and current system load. Use GET /bulk/{bulk_id} to monitor progress. Bulk jobs use the same base URL and API key authentication as the AI detection task API:
Terminal bulk statuses are succeeded, failed, and partial. Bulk metadata and results are retained for 48 hours after the job reaches a terminal status. Timestamps are returned as Unix epoch seconds encoded as strings, such as "1760000000.0". Treat them as UTC instants when converting to a date-time value. The launch bulk limit is 1,000 billable units per request. A billable unit is one started 1,000-word block per valid item, with a minimum of one unit per item. There is no separate item-count limit, but normal request-body limits still apply. Requests over the current bulk limit return 413 Payload Too Large.

POST /bulk

Create a bulk AI detection job.

Request

Provide exactly one of items or text. Valid request bodies use either a plain text list:
Or an items list when you want customer IDs returned with status and results:
Do not include both text and items in the same request. Item id values are optional, but must be unique when provided.
items
array
List of item objects. Each item must include text and may include a unique customer-defined id.
text
array
List of input text strings. Use this simpler shape when you do not need customer item IDs.

Response

Returns 202 Accepted.
bulk_id
string
The ID of the bulk job.
status
string
Initial status. Usually queued; returns failed if every item failed immediate validation.
total_items
integer
Total number of submitted items.
accepted_items
array
Items accepted for processing. Each item includes index, optional id, and task_id.
failed_items
array
Items that failed immediate validation. Each item includes index, optional id, task_id: null, stage, and error.

Example

Example Response

GET /bulk/

Fetch the current status and counters for a bulk job.

Request

bulk_id
string
required
The bulk job ID returned by POST /bulk.

Response

bulk_id
string
The ID of the bulk job.
status
string
One of queued, running, succeeded, failed, or partial.
total_items
integer
Total number of submitted items.
accepted
integer
Number of items accepted for processing.
succeeded
integer
Number of items that completed successfully.
failed
integer
Number of items that failed.
created_at
string
Job creation timestamp as Unix epoch seconds encoded as a string.
completed_at
string
Job completion timestamp as Unix epoch seconds encoded as a string. null while the job is not terminal.
Example Response

Status values

GET /bulk//items

Fetch paginated item metadata for a bulk job.

Request

bulk_id
string
required
The bulk job ID returned by POST /bulk.
offset
integer
default:"0"
Zero-based item offset.
limit
integer
default:"100"
Maximum number of items to return. The maximum is 1000.

Response

bulk_id
string
The ID of the bulk job.
offset
integer
The returned page offset.
limit
integer
The returned page limit.
total_items
integer
Total number of submitted items.
items
array
Item metadata. Each item includes index, optional id, task_id, stage, and optional error.
Example Response

GET /bulk//results

Fetch paginated results for a bulk job.

Request

bulk_id
string
required
The bulk job ID returned by POST /bulk.
offset
integer
default:"0"
Zero-based item offset.
limit
integer
default:"100"
Maximum number of items to return. The maximum is 1000.

Response

bulk_id
string
The ID of the bulk job.
offset
integer
The returned page offset.
limit
integer
The returned page limit.
total_items
integer
Total number of submitted items.
items
array
Result items for successful or in-progress work. Successful completed items include result; in-progress items have result: null.
failed_items
array
Failed item metadata for the requested page.
Example Response

Errors