Video Gen API 开发者文档
使用指南火山兼容APIOpenAI 兼容API在线调试帮助支持
真人认证 Action

创建真人认证 H5 会话

CreateVisualValidateSession - 拉起端上真人认证页面

POST
/
AuthorizationBearer <token>

兼容网关 API Key,例如 sk-...。

In: header

Query Parameters

Action*string
Default"CreateVisualValidateSession"
Version*string
Default"2024-01-01"

Header Parameters

X-Date?string

使用 HMAC-SHA256 时必填,格式为 YYYYMMDDTHHMMSSZ。

X-Content-Sha256?string

使用 HMAC-SHA256 时必填,请求体 SHA-256 小写十六进制。

Request Body

application/json

CallbackURL*string

认证完成后跳转的公网可访问 URL。

Formaturi
Lengthlength <= 2048
ProjectName?string

资源所属项目名称,大小写敏感。省略时使用 default。

Default"default"

Response Body

application/json

application/json

curl -X POST "https://jieyun.cc/?Action=CreateVisualValidateSession&Version=2024-01-01" \  -H "Content-Type: application/json" \  -d '{    "CallbackURL": "https://example.com/liveness/callback",    "ProjectName": "default"  }'
{
  "ResponseMetadata": {
    "RequestId": "20260721000000000000000000000000",
    "Action": "CreateVisualValidateSession",
    "Version": "2024-01-01",
    "Service": "ark",
    "Region": "cn-beijing"
  },
  "Result": {
    "BytedToken": "20260721120000-example-token",
    "H5Link": "https://ark.volcengine.com/region:cn-beijing/mobile/livenees-face-manage/authorization?pl=example",
    "CallbackURL": "https://example.com/liveness/callback"
  }
}
{
  "ResponseMetadata": {
    "RequestId": "string",
    "Action": "CreateVisualValidateSession",
    "Version": "2024-01-01",
    "Service": "ark",
    "Region": "cn-beijing",
    "Error": {
      "Code": "string",
      "Message": "string"
    }
  }
}
Empty
Empty
Empty
Empty

最后更新于