跳转到主要内容
属性目录

credential.type 中可接受的证件类型列表。

Markdown

该目录是 Unico 发布的公开 JSON 文件,地址为 https://human-token-assets.unico.app/attribute-catalog.json。请通过它查看可使用的代码。

{
"schema_version": 1,
"version": "2026-10-29.1",
"attributes": [
{ "code": "DUI_TYPE_BR_CPF", "country_code": "BRA" },
{ "code": "DUI_TYPE_NG_BVN", "country_code": "NGA" }
]
}
  • code 是您在 credential.type 中发送的值。匹配严格且区分大小写。
  • country_code 是签发该证件的国家,采用 ISO 3166-1 alpha-3 代码。Human Plugin 在 data.ndocs 中以 countryCode 返回它。

Human Plugin 如何使用它​

  • 在启动时下载一次并保存在内存中。新的目录会在 Human Plugin 下次重启时生效。
  • 如果 Human Plugin 无法在 10 秒内下载到有效的目录,它将无法启动。请允许出站 HTTPS 访问 human-token-assets.unico.app。
  • 不会向目录主机发送任何客户数据。
  • 如果创建请求中的 credential.type 不在目录内,将在存储或发送任何内容之前,以 422 ATTRIBUTE_TYPE_NOT_SUPPORTED 拒绝。