To use a trial account to perform this tutorial, first follow the steps described in Use Trial to Set Up Account for SAP Document AI and Get Service Key.
To perform this tutorial using the Free (free) service plan or one of the service plans intended for productive use – either Premium Edition (premium_edition) or Base Edition (blocks_of_100) –, first follow the steps described in Use Free Tier to Set Up Account for SAP Document AI and Get Service Key. For more information on the service plans available for SAP Document AI, see Service Plans.
Next, perform the steps described in Get OAuth Access Token for SAP Document AI via Web Browser.
Finally, you need to access and authorize the SAP Document AI Swagger UI as described below. You’ll use Swagger UI to call the SAP Document AI APIs via any web browser. Swagger UI allows developers to effortlessly interact and try out every single operation an API exposes for easy consumption. For more information, see Swagger UI.
To access and authorize the SAP Document AI Swagger UI, you’ll need the following entries from the service key that you created for SAP Document AI in the tutorials Use Trial to Set Up Account for SAP Document AI and Get Service Key or Use Free Tier to Set Up Account for SAP Document AI and Get Service Key:
You’ll find both of these entries outside the uaa section of the service key. (See the image below.)
-
To access the SAP Document AI Swagger UI, copy the tenantuiurl value and paste it into a text editor. Then, copy the swagger value /document-information-extraction/v1/ and paste it onto the end of the tenantuiurl value. Finally, copy the entire string, paste it into the address bar of your web browser, and press Enter.
-
To be able to use the Swagger UI endpoints, you need to authorize yourself. In the top-right corner, click Authorize.
-
Copy the access_token value created in the tutorial Get OAuth Access Token for SAP Document AI Using Any Web Browser and paste it into a text editor. Move your cursor to the start of the line containing the value and enter Bearer followed by a space. Finally, copy the entire string, and paste it into the Value field.
Bearer <access_token>
-
Click Authorize, and then click Close.