Create H5 Verification Session
Create a real-person verification session and return a bytedToken plus an H5 liveness link.
Create a real-person verification session and return bytedToken and an H5 link. Ask the user to open h5Link on a phone and finish the liveness check. Pass callbackUrl to use a custom callback. If you omit it, look up the asset group by bytedToken after a successful check to get the real-person group ID.
Real-person verification is required. It cannot be skipped or bypassed with an allowlist. If the same real person calls this endpoint multiple times, a new real-person asset group is created each time.
Base URL
https://api.autorouter.top— Production
Authentication
BearerAuth: http (bearer)
Authenticate using a Bearer Token.
Format: Authorization: Bearer sk-xxxxxx
Endpoints
POST /seedance/v1/real-person-auth/sessions
Create H5 Verification Session
Return the verification token, H5 link, and token lifetime. You can optionally pass a custom callback URL in callbackUrl.
Request Body
Content-Type: application/json
Example:
{
"callbackUrl": "https://example.com/auth/callback"
}Properties:
| Name | Type | Required | Description |
|---|---|---|---|
callbackUrl | string | No | Your custom callback URL. When set, follow the custom callback flow below |
callbackUrlstring(Optional)
Your custom callback URL.
Custom callback flow:
- Call Create H5 Verification Session with your
callbackUrl, and receivebytedToken,h5Link, andexpiresIn. - Ask the real-person asset group creator to open
h5Linkand finish the liveness check beforeexpiresInexpires. Volcano Engine calls yourcallbackUrland appends?bytedToken=&resultCode=10000&algorithmBaseRespCode=0&reqMeasureInfoValue=1&verify_type=real_time.resultCode=10000means success; any other value means failure. Do not put query parameters oncallbackUrl, or they will conflict with the parameters Volcano appends. - After you confirm that
resultCodeindicates success, call Confirm Real-Person Verification and Get Asset Group withbytedTokenbeforeexpiresInexpires to getgroupId. - [Optional / later] Call Get Asset Group by bytedToken with
bytedTokento getgroupId.
Responses
200: Success
Content-Type: application/json
Request examples
curl -X POST "https://api.autorouter.top/seedance/v1/real-person-auth/sessions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxxxx" \
-d '{
"callbackUrl": "https://example.com/auth/callback"
}'Response examples
{
"requestId": "20ad53e3-8e3c-4ddd-90b3-fc452e54f673",
"state": "OK",
"errorCode": null,
"errorMessage": null,
"body": {
"bytedToken": "202608030954115CF1D0D1C821E6CA8510",
"h5Link": "https://ark.volcengine.com/region:cn-beijing/mobile/livenees-face-ma...",
"expiresIn": 120
}
}Response fields:
| Name | Type | Description |
|---|---|---|
requestId | string | Request ID |
state | string | Call status. OK means success, ERROR means failure |
errorCode | string | Error code. Empty string or null on success |
errorMessage | string | Error message. Empty string or null on success |
body | object | Real-person verification session |
body. | string | Verification token, used to query the result and the matching asset group |
body. | string | H5 liveness-check link. Ask the user to open it on a phone and finish verification |
body. | integer | Token lifetime, in seconds |
statestring
Call status. OK means success, ERROR means failure
OK: SuccessERROR: Failure. CheckerrorCodeanderrorMessage
bodyobject
Real-person verification session
Verification token, used to query the result and the matching asset group
H5 liveness-check link. Ask the user to open it on a phone and finish verification
Token lifetime, in seconds
Error handling
When the HTTP status is 200, still check state in the response body.
state | Description |
|---|---|
OK | The call succeeded. Business data is in body |
ERROR | The call failed. errorCode is the error code and errorMessage is the error message |
On success, errorCode and errorMessage may be an empty string or null.