liveness_face materials. TokenLab uses the Volc Action API shape and TokenLab Bearer authentication.
Endpoint And Authentication
CallbackURL is required and must be a public HTTPS URL. ProjectName is optional and defaults to default.
Flow
- Save
Result.BytedTokenand openResult.H5Linkfor the person being verified. - To select the H5 language, append
lngtoH5Link, for example&lng=en. The language is not a request-body field. - After the H5 flow finishes, the browser opens
Result.CallbackURL. The callback query can containbytedToken,resultCode,algorithmBaseRespCode,reqMeasureInfoValue, andverify_type. - Poll Get Visual Validation Result with the saved
BytedTokenuntilResult.GroupIdis returned.
BytedToken is valid for 30 minutes and is scoped to the authenticated organization and ProjectName. The H5 link supports one completed authentication and becomes invalid after use.
Treat Result.H5Link as an opaque browser URL: open it as a top-level page, and do not parse, decode, rewrite, or embed it. TokenLab owns the browser handoff and callback bridge.
Example Request
Example Response
ResponseMetadata.Error.Code and ResponseMetadata.Error.Message instead of expecting the fields from TokenLab’s other /v1 APIs.