UiPath Documentation
document-understanding
latest
false
  • 入门指南
    • 概述
    • 限制和配额
    • 将自动化从 Document Understanding API v1 迁移到 v2
  • 使用 Document Understanding™ Cloud API v1 的示例
  • 许可
  • 故障排除
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Document Understanding API 指南

上次更新日期 2026年4月29日

授权使用外部应用程序并检索可用资源

  1. 创建一个新的 Document UnderstandingTM 项目并检索projectId(可在项目 URL 中找到)。

本示例中,我们使用了 Swagger 中可用的预定义项目*,其标识为projectID00000000-0000-0000-0000-000000000000。

备注:

预定义项目在 Document Understanding 用户界面中不可见。 它提供对可用公共 ML 模型的编程访问权限。

  1. 创建一个外部应用程序,其中 Document Understanding 用作资源,包括所有可用的应用程序作用域
  2. 发起对身份服务的 curl 调用,以获取令牌。
curl --data \
-urlencode "scope=Du.Digitization"  --data \
-urlencode "client_id={app_id}" --data \
-urlencode "client_secret={app_secret}" --data \
-urlencode "grant_type=client_credentials" {AutomationCloudURL}/identity_/connect/token
curl --data \
-urlencode "scope=Du.Digitization"  --data \
-urlencode "client_id={app_id}" --data \
-urlencode "client_secret={app_secret}" --data \
-urlencode "grant_type=client_credentials" {AutomationCloudURL}/identity_/connect/token
备注:

授权令牌具有有效期。请参阅以下响应中关于有效期的信息,并确保在过期前续订。

{ 
"access_token": "eyJh**CRaKrg", 
"expires_in": 3600, 
"token_type": "Bearer", 
"scope": "Du.Digitization.Api" 
}
{ 
"access_token": "eyJh**CRaKrg", 
"expires_in": 3600, 
"token_type": "Bearer", 
"scope": "Du.Digitization.Api" 
}

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新