Skip to main content
POST
Bulk API
For more information on billing units and pricing, check our pricing page for developers. Current
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 word block per valid item — 100 words for Pangram 4, or 1,000 words for Pangram 3 — 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. One model applies to the entire bulk job; per-item model selectors are not supported. Use GET /models to discover the selectors available to your API key. The REST API temporarily accepts an omitted selector for backward compatibility and resolves it to "default". New integrations should send it explicitly.

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.
array
List of item objects. Each item must include text and may include a unique customer-defined id.
array
List of input text strings. Use this simpler shape when you do not need customer item IDs.
string
default:"default"
A selector returned by GET /models. Applies to every item in the job.

Response

Returns 202 Accepted.
string
The ID of the bulk job.
string
Initial status. Usually queued; returns failed if every item failed immediate validation.
integer
Total number of submitted items.
array
Items accepted for processing. Each item includes index, optional id, and task_id.
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

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

Response

string
The ID of the bulk job.
string
One of queued, running, succeeded, failed, or partial.
integer
Total number of submitted items.
integer
Number of items accepted for processing.
integer
Number of items that completed successfully.
integer
Number of items that failed.
string
Job creation timestamp as Unix epoch seconds encoded as a string.
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

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

Response

string
The ID of the bulk job.
integer
The returned page offset.
integer
The returned page limit.
integer
Total number of submitted 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

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

Response

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

Errors