Skip to main content
Create the real-person visual validation session before uploading reusable liveness_face materials. TokenLab uses the Volc Action API shape and TokenLab Bearer authentication.

Endpoint And Authentication

Volc AK/SK signing is not accepted. CallbackURL is required and must be a public HTTPS URL. ProjectName is optional and defaults to default.

Flow

  1. Save Result.BytedToken and open Result.H5Link for the person being verified.
  2. To select the H5 language, append lng to H5Link, for example &lng=en. The language is not a request-body field.
  3. After the H5 flow finishes, the browser opens Result.CallbackURL. The callback query can contain bytedToken, resultCode, algorithmBaseRespCode, reqMeasureInfoValue, and verify_type.
  4. Poll Get Visual Validation Result with the saved BytedToken until Result.GroupId is 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

Errors use the same top-level envelope. Read ResponseMetadata.Error.Code and ResponseMetadata.Error.Message instead of expecting the fields from TokenLab’s other /v1 APIs.