> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Liveness Session

> Create a mobile liveness face validation session. Open the returned H5Link on a phone to complete face verification. This endpoint requires an API token created with the Byteplus-Direct group.



## OpenAPI

````yaml api-reference/model-api/bytedance/openapi/volc-asset-create-visual-validate-session/openapi.yaml POST /volc/asset/CreateVisualValidateSession
openapi: 3.1.0
info:
  title: Seedance 2.0 Asset — Create Visual Validate Session
  description: >-
    Create a liveness face validation session for a LivenessFace asset group via
    Anyfast API. Requires a Byteplus-Direct group token.
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /volc/asset/CreateVisualValidateSession:
    post:
      summary: Create Visual Validate Session
      description: >-
        Create a mobile liveness face validation session. Open the returned
        H5Link on a phone to complete face verification. This endpoint requires
        an API token created with the Byteplus-Direct group.
      operationId: createVisualValidateSession
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                CallbackURL:
                  type: string
                  description: Optional callback URL to receive upstream validation events.
                  example: https://example.com/callback
              example:
                CallbackURL: https://example.com/callback
      responses:
        '200':
          description: Validation session created
          content:
            application/json:
              schema:
                type: object
                properties:
                  BytedToken:
                    type: string
                    description: >-
                      Temporary validation token. Use it with
                      GetVisualValidateResult after the user completes liveness
                      verification.
                    example: 2026070222152680501D985EA34A3BE3D8
                  CallbackURL:
                    type: string
                    description: Callback URL from the request.
                    example: https://example.com/callback
                  H5Link:
                    type: string
                    description: Mobile H5 page URL for liveness face verification.
                    example: >-
                      https://www.byteplus.com/en/liveness-face-manage/authorization?pl=...
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````