liveness_face materials. AI Sonar uses the Volc Action API shape and AI Sonar Bearer authentication.
Endpoint And Authentication
CallbackURL is required and must be a public HTTP or 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.
Example Request
Example Response
ResponseMetadata.Error.Code and ResponseMetadata.Error.Message instead of expecting the fields from AI Sonar’s other /v1 APIs.