Class RawParseRunsClient
- java.lang.Object
-
- ai.extend.resources.parseruns.RawParseRunsClient
-
public class RawParseRunsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawParseRunsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtendClientHttpResponse<ParseRun>cancel(java.lang.String id)Cancel an in-progress parse run.ExtendClientHttpResponse<ParseRun>cancel(java.lang.String id, RequestOptions requestOptions)Cancel an in-progress parse run.ExtendClientHttpResponse<ParseRun>cancel(java.lang.String id, ParseRunsCancelRequest request)Cancel an in-progress parse run.ExtendClientHttpResponse<ParseRun>cancel(java.lang.String id, ParseRunsCancelRequest request, RequestOptions requestOptions)Cancel an in-progress parse run.ExtendClientHttpResponse<ParseRun>create(ParseRunsCreateRequest request)Parse files to get cleaned, chunked target content (e.g.ExtendClientHttpResponse<ParseRun>create(ParseRunsCreateRequest request, RequestOptions requestOptions)Parse files to get cleaned, chunked target content (e.g.ExtendClientHttpResponse<BatchRun>createBatch(ParseRunsCreateBatchRequest request)Submit up to 1,000 files for parsing in a single request.ExtendClientHttpResponse<BatchRun>createBatch(ParseRunsCreateBatchRequest request, RequestOptions requestOptions)Submit up to 1,000 files for parsing in a single request.ExtendClientHttpResponse<ParseRunsDeleteResponse>delete(java.lang.String id)Delete a parse run and all associated data from Extend.ExtendClientHttpResponse<ParseRunsDeleteResponse>delete(java.lang.String id, RequestOptions requestOptions)Delete a parse run and all associated data from Extend.ExtendClientHttpResponse<ParseRunsDeleteResponse>delete(java.lang.String id, ParseRunsDeleteRequest request)Delete a parse run and all associated data from Extend.ExtendClientHttpResponse<ParseRunsDeleteResponse>delete(java.lang.String id, ParseRunsDeleteRequest request, RequestOptions requestOptions)Delete a parse run and all associated data from Extend.ExtendClientHttpResponse<ParseRunsListResponse>list()List parse runs, with optional filters for status, batch ID, source, and file name.ExtendClientHttpResponse<ParseRunsListResponse>list(RequestOptions requestOptions)List parse runs, with optional filters for status, batch ID, source, and file name.ExtendClientHttpResponse<ParseRunsListResponse>list(ParseRunsListRequest request)List parse runs, with optional filters for status, batch ID, source, and file name.ExtendClientHttpResponse<ParseRunsListResponse>list(ParseRunsListRequest request, RequestOptions requestOptions)List parse runs, with optional filters for status, batch ID, source, and file name.ExtendClientHttpResponse<ParseRun>retrieve(java.lang.String id)Retrieve the status and results of a parse run.ExtendClientHttpResponse<ParseRun>retrieve(java.lang.String id, RequestOptions requestOptions)Retrieve the status and results of a parse run.ExtendClientHttpResponse<ParseRun>retrieve(java.lang.String id, ParseRunsRetrieveRequest request)Retrieve the status and results of a parse run.ExtendClientHttpResponse<ParseRun>retrieve(java.lang.String id, ParseRunsRetrieveRequest request, RequestOptions requestOptions)Retrieve the status and results of a parse run.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawParseRunsClient
public RawParseRunsClient(ClientOptions clientOptions)
-
-
Method Detail
-
list
public ExtendClientHttpResponse<ParseRunsListResponse> list()
List parse runs, with optional filters for status, batch ID, source, and file name.Returns a paginated list of parse runs. Use
GET /parse_runs/{id}to retrieve the full result including output for a specific run.
-
list
public ExtendClientHttpResponse<ParseRunsListResponse> list(RequestOptions requestOptions)
List parse runs, with optional filters for status, batch ID, source, and file name.Returns a paginated list of parse runs. Use
GET /parse_runs/{id}to retrieve the full result including output for a specific run.
-
list
public ExtendClientHttpResponse<ParseRunsListResponse> list(ParseRunsListRequest request)
List parse runs, with optional filters for status, batch ID, source, and file name.Returns a paginated list of parse runs. Use
GET /parse_runs/{id}to retrieve the full result including output for a specific run.
-
list
public ExtendClientHttpResponse<ParseRunsListResponse> list(ParseRunsListRequest request, RequestOptions requestOptions)
List parse runs, with optional filters for status, batch ID, source, and file name.Returns a paginated list of parse runs. Use
GET /parse_runs/{id}to retrieve the full result including output for a specific run.
-
create
public ExtendClientHttpResponse<ParseRun> create(ParseRunsCreateRequest request)
Parse files to get cleaned, chunked target content (e.g. markdown).The Parse endpoint allows you to convert documents into structured, machine-readable formats with fine-grained control over the parsing process. This endpoint is ideal for extracting cleaned document content to be used as context for downstream processing, e.g. RAG pipelines, custom ingestion pipelines, embeddings classification, etc.
The request returns immediately with a
PROCESSINGstatus. Use webhooks or poll the Get Parse Run endpoint for results.
-
create
public ExtendClientHttpResponse<ParseRun> create(ParseRunsCreateRequest request, RequestOptions requestOptions)
Parse files to get cleaned, chunked target content (e.g. markdown).The Parse endpoint allows you to convert documents into structured, machine-readable formats with fine-grained control over the parsing process. This endpoint is ideal for extracting cleaned document content to be used as context for downstream processing, e.g. RAG pipelines, custom ingestion pipelines, embeddings classification, etc.
The request returns immediately with a
PROCESSINGstatus. Use webhooks or poll the Get Parse Run endpoint for results.
-
retrieve
public ExtendClientHttpResponse<ParseRun> retrieve(java.lang.String id)
Retrieve the status and results of a parse run.Use this endpoint to get results for a parse run that has already completed, or to check on the status of a parse run initiated by the Create Parse Run endpoint.
-
retrieve
public ExtendClientHttpResponse<ParseRun> retrieve(java.lang.String id, RequestOptions requestOptions)
Retrieve the status and results of a parse run.Use this endpoint to get results for a parse run that has already completed, or to check on the status of a parse run initiated by the Create Parse Run endpoint.
-
retrieve
public ExtendClientHttpResponse<ParseRun> retrieve(java.lang.String id, ParseRunsRetrieveRequest request)
Retrieve the status and results of a parse run.Use this endpoint to get results for a parse run that has already completed, or to check on the status of a parse run initiated by the Create Parse Run endpoint.
-
retrieve
public ExtendClientHttpResponse<ParseRun> retrieve(java.lang.String id, ParseRunsRetrieveRequest request, RequestOptions requestOptions)
Retrieve the status and results of a parse run.Use this endpoint to get results for a parse run that has already completed, or to check on the status of a parse run initiated by the Create Parse Run endpoint.
-
delete
public ExtendClientHttpResponse<ParseRunsDeleteResponse> delete(java.lang.String id)
Delete a parse run and all associated data from Extend. This operation is permanent and cannot be undone.This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
-
delete
public ExtendClientHttpResponse<ParseRunsDeleteResponse> delete(java.lang.String id, RequestOptions requestOptions)
Delete a parse run and all associated data from Extend. This operation is permanent and cannot be undone.This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
-
delete
public ExtendClientHttpResponse<ParseRunsDeleteResponse> delete(java.lang.String id, ParseRunsDeleteRequest request)
Delete a parse run and all associated data from Extend. This operation is permanent and cannot be undone.This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
-
delete
public ExtendClientHttpResponse<ParseRunsDeleteResponse> delete(java.lang.String id, ParseRunsDeleteRequest request, RequestOptions requestOptions)
Delete a parse run and all associated data from Extend. This operation is permanent and cannot be undone.This endpoint can be used if you'd like to manage data retention on your own rather than automated data retention policies. Or make one-off deletions for your downstream customers.
-
cancel
public ExtendClientHttpResponse<ParseRun> cancel(java.lang.String id)
Cancel an in-progress parse run.Note: Only parse runs with a status of
"PROCESSING"can be cancelled. Parse runs that have already completed, failed, or been cancelled cannot be cancelled again.
-
cancel
public ExtendClientHttpResponse<ParseRun> cancel(java.lang.String id, RequestOptions requestOptions)
Cancel an in-progress parse run.Note: Only parse runs with a status of
"PROCESSING"can be cancelled. Parse runs that have already completed, failed, or been cancelled cannot be cancelled again.
-
cancel
public ExtendClientHttpResponse<ParseRun> cancel(java.lang.String id, ParseRunsCancelRequest request)
Cancel an in-progress parse run.Note: Only parse runs with a status of
"PROCESSING"can be cancelled. Parse runs that have already completed, failed, or been cancelled cannot be cancelled again.
-
cancel
public ExtendClientHttpResponse<ParseRun> cancel(java.lang.String id, ParseRunsCancelRequest request, RequestOptions requestOptions)
Cancel an in-progress parse run.Note: Only parse runs with a status of
"PROCESSING"can be cancelled. Parse runs that have already completed, failed, or been cancelled cannot be cancelled again.
-
createBatch
public ExtendClientHttpResponse<BatchRun> createBatch(ParseRunsCreateBatchRequest request)
Submit up to 1,000 files for parsing in a single request. Each file is processed as an independent parse run using the same configuration.Unlike the single Parse File (Async) endpoint, this batch endpoint accepts an
inputsarray and immediately returns aBatchRunobject containing a batchidand aPENDINGstatus. The individual runs are then queued and processed asynchronously.Monitoring results:
- Webhooks (recommended): Subscribe to
batch_parse_run.processedandbatch_parse_run.failedevents. The webhook payload indicates the batch has finished — fetch individual run results usingGET /parse_runs?batchId={id}. - Polling: Call
GET /batch_runs/{id}to check the overall batch status, and useGET /parse_runs?batchId={id}to retrieve individual run results.
Notes:
inputsmust contain between 1 and 1,000 items.- File input supports URLs, Extend file IDs, and raw text strings.
- Webhooks (recommended): Subscribe to
-
createBatch
public ExtendClientHttpResponse<BatchRun> createBatch(ParseRunsCreateBatchRequest request, RequestOptions requestOptions)
Submit up to 1,000 files for parsing in a single request. Each file is processed as an independent parse run using the same configuration.Unlike the single Parse File (Async) endpoint, this batch endpoint accepts an
inputsarray and immediately returns aBatchRunobject containing a batchidand aPENDINGstatus. The individual runs are then queued and processed asynchronously.Monitoring results:
- Webhooks (recommended): Subscribe to
batch_parse_run.processedandbatch_parse_run.failedevents. The webhook payload indicates the batch has finished — fetch individual run results usingGET /parse_runs?batchId={id}. - Polling: Call
GET /batch_runs/{id}to check the overall batch status, and useGET /parse_runs?batchId={id}to retrieve individual run results.
Notes:
inputsmust contain between 1 and 1,000 items.- File input supports URLs, Extend file IDs, and raw text strings.
- Webhooks (recommended): Subscribe to
-
-