SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Activate the Instant Learning Feature with Swagger UI

Use Swagger UI and the Configuration API to activate the instant learning feature of SAP Document AI, one of the SAP AI Business Services in SAP Business Technology Platform (SAP BTP).

Overview

🎓 beginner 5 min. Machine LearningBeginnerArtificial IntelligenceCloudSAP Business Technology PlatformSAP Ai ServicesSAP Document AiFree Tier

You will learn

  • How to access and consume the SAP Document AI APIs via Swagger UI
  • How to use the Configuration API to activate the instant learning feature, see the list of all configurations already created and their scope, and delete configurations
Juliana Morais J Juliana Morais July 28, 2026
Created by February 13, 2025
Contributors

Prerequisites

Steps

Intro

Before using the instant learning feature, you need to activate it. This tutorial shows you how to do that. For more information on how to use the instant learning feature, see Instant Learning (Premium Edition) and Instant Learning (Premium Edition): Best Practices.


Step 1 Access and authorize Swagger UI

To use a trial account to perform this tutorial, first follow the steps described in Use Trial to Create a Service Instance for SAP Document AI.

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 Create a Service Instance for SAP Document AI. 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 Create a Service Instance for SAP Document AI or Use Free Tier to Create a Service Instance for SAP Document AI:

  • tenantuiurl

  • swagger

You’ll find both of these entries outside the uaa section of the service key. (See the image below.)

  1. 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.

    DOX
    DOX

  2. To be able to use the Swagger UI endpoints, you need to authorize yourself. In the top-right corner, click Authorize.

    DOX
    DOX

  3. 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.

    Code
    Bearer <access_token>
  4. Click Authorize, and then click Close.

    DOX
    DOX

    DOX
    DOX

Step 2 Test Swagger UI authorizations
+
Step 3 Create configuration
+
Step 4 Get configuration (optional)
+
Step 5 Delete configuration (optional)
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Access and authorize Swagger UI 2. Test Swagger UI authorizations 3. Create configuration 4. Get configuration (optional) 5. Delete configuration (optional)

Learn more →