メインコンテンツへスキップ
Create a short-lived verification session and redirect your user to the returned H5 link. TokenLab returns only neutral fields: session_id, verification_token, h5_link, callback_url, expires_in, and language. The session, token, and H5 link expire after 120 seconds. When the H5 flow completes, TokenLab redirects to your original callback_url with these query parameters:
ParameterMeaning
session_idTokenLab verification session ID.
verification_tokenOpaque token used to bind the result.
verification_statussucceeded or failed.
result_codeResult code for your application logic.
If verification_status is succeeded, call Bind Real-Person Verification Result. The test console can be used to verify callback handling before you wire the flow into your product.

Example Request

curl https://api.tokenlab.sh/v1/videos/assets/visual-validation-sessions \
  -H "Authorization: Bearer $TOKENLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"callback_url":"https://yourapp.example.com/seedance/callback","language":"en"}'

Example Response

{
  "object": "seedance.visual_validation_session",
  "session_id": "svv_abc123",
  "verification_token": "svvt_def456",
  "h5_link": "https://verify.example.com/h5?lng=en",
  "callback_url": "https://yourapp.example.com/seedance/callback",
  "expires_in": 120,
  "language": "en"
}