Doc AI rest api response in python code

94 views
Skip to first unread message

Deepa Dharmit Shah

unread,
Jul 6, 2021, 11:21:06 AM7/6/21
to Google Cloud Developers
I want to invoke Google Cloud Document AI  API  Small file online processing Rest API  from  python code 

How should my request be ?

response = requests.post ("<doc ai processor endpoint here>", headers=headers, json or is it data here = ?)




Jun (Cloud Platform Support)

unread,
Jul 7, 2021, 6:00:38 PM7/7/21
to Google Cloud Developers
Hi, 

You can reference the request body information at [1] for the Rest API method of processing a single document at the Document AI Solution. 

Reply all
Reply to author
Forward
0 new messages