C

Cloud Document AI API

REST discovered

Details
URL
https://documentai.googleapis.com/
Docs
https://docs.cloud.google.com/document-ai/docs/reference/rest
Authentication
Google Cloud OAuth 2.0 access token oauth2 discovered Set up OAuth ↗
Authorization: Bearer <credential>

Use a Google Cloud project with the Document AI API enabled via Document AI setup. Then authenticate with a Google account or service account and obtain an access token, for example with the Google Cloud CLI (gcloud auth login for a user or gcloud auth application-default login / a service account as described in the setup and request guides). The API methods in the discovery document require the https://www.googleapis.com/auth/cloud-platform scope.

Google Cloud API key api_key discovered Get key ↗
?key=<credential>

In the Google Cloud Console, open APIs & Services > Credentials, create an API key, and enable the Document AI API for your project as shown in Document AI setup. The Document AI discovery document says the key query parameter is accepted and is required unless you provide an OAuth 2.0 token.