Skip to content
Document AI logo

Connectors / Documents and e-signature · HTTP Connector

Document AI integration and API

Create a processor and create a schema in Document AI. Connect Document AI to the rest of your documents and e-signature stack with Tray.ai.

What can you do with Document AI on Tray.ai?

Document AI is a Google Cloud service that reads scanned and digital documents and pulls out text, tables and fields using trained or custom processors. Tray.ai connects to Document AI through the HTTP Connector, so your workflows can call the Document AI API alongside the rest of your stack.

  • Process a document for every receipt employees submit and send the totals to your expense system.
  • Batch process documents from a nightly scan folder and load the extracted fields into your ERP.
  • Process a document for each new loan application and write the fields to your case management system.
Connects through
HTTP Connector
Authentication
OAuth 2.0
Base URL
https://documentai.googleapis.com

Set it up

Connect Document AI to Tray.ai

Each step uses Document AI's own API details, from its documentation.

Sign in to Document AI with OAuth 2.0

Set up an OAuth 2.0 authentication with the client ID and secret of an OAuth app you register with Document AI. Sign in once and every step reads the token from there.

Point the HTTP Client at the API

Add an HTTP Client step and use https://documentai.googleapis.com as the base URL. Or paste a cURL example from Document AI's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List processors”

It's one of 19 documented actions, under Processors. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create a processor” and “Get a processor” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Document AI

Connect Document AI with Google Drive, Google BigQuery and Snowflake

Each one uses actions and events from Document AI's own API documentation.

Extract invoice fields with Document AI and load them into BigQuery

When

A file is added to a Google Drive folder

Then

  1. Process a document with the invoice processor
  2. Load the extracted fields into a table in Google BigQuery

With Google Drive and Google BigQuery

Run a nightly Document AI batch and load the results into Snowflake

When

On a schedule

Then

  1. Batch process documents from the day's scans
  2. Get an operation to check when the batch finishes
  3. Load the extracted data into Snowflake

With Snowflake

Document AI MCP server for AI agents

Build an MCP server on Document AI in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List processors
  • Process a document
  • List processor versions
  • List schemas
  • List operations
  • Create a processor
  • Get a processor
  • Delete a processor

What the Document AI API covers

5 resources and 19 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.

Processors

  • List processors
  • Create a processor
  • Get a processor
  • Delete a processor
  • Enable a processor
  • Disable a processor

Documents

  • Process a document
  • Batch process documents

Processor versions

  • List processor versions
  • Train a processor version
  • Deploy a processor version
  • Undeploy a processor version

Schemas

  • List schemas
  • Create a schema
  • Update a schema
  • Delete a schema

Operations

  • List operations
  • Get an operation
  • Cancel an operation

Checked against Document AI's own documentation on 2026-10-25

docs.cloud.google.com/document-ai/docs/reference/rest

Frequently asked questions

What can a Tray.ai workflow do in Document AI?

The Document AI API documents 19 actions across 5 resources (Processors, Documents, Processor versions, Schemas, Operations). For example: List processors; Process a document; List processor versions. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Document AI?

The Document AI API uses OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Document AI working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.