Method: projects.locations.documents.batchProcess

LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.

HTTP request

POST https://documentai.googleapis.com/v1beta1/{parent=projects/*/locations/*}/documents:batchProcess

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (ProcessDocumentRequest)
    }
  ]
}
Fields
requests[]

object (ProcessDocumentRequest)

Required. Individual requests for each document.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.