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

# Truy xuất trạng thái xác minh người thật

> Đọc trạng thái xác minh có chữ ký của nhóm tài sản nhân vật người thật đang chờ.

Đọc endpoint trạng thái từ URL xác minh đã ký được trả về cho nhóm người thật đang chờ. Yêu cầu dùng các giá trị truy vấn `expires` và `signature` và không cần mã thông báo truy cập.

```bash theme={null}
curl \
  "https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness/status?expires=<EXPIRES>&signature=<SIGNATURE>"
```

Phản hồi chứa tên trang xác minh, trạng thái nhóm và thông tin cho biết phiên xác minh có đang hoạt động hay không.

| Trường | Mô tả |
| - | - |
| `data.name` | Tên nhóm tài sản. |
| `data.status` | `pending`, `active` hoặc `expired`. |
| `data.activated` | Cho biết phiên xác minh có đang hoạt động hay không. |

Thăm dò endpoint bằng URL đã ký đến khi `data.status=active`. Chữ ký không hợp lệ hoặc hết hạn trả về HTTP `403`. Nhóm không tồn tại trả về HTTP `404`.


## OpenAPI

````yaml api/openapi/video/seedance/get-character-asset-liveness-status.openapi.json GET /api/asset/groups/{id}/liveness/status
openapi: 3.1.0
info:
  title: Retrieve character asset liveness status API
  version: 1.0.0
  description: >-
    Retrieve the signed verification status for a pending real-person character
    asset group.
servers:
  - url: https://api.cometapi.com
security: []
paths:
  /api/asset/groups/{id}/liveness/status:
    get:
      summary: Retrieve real-person verification status
      description: >-
        Read the verification status using the expires and signature values from
        the signed verification URL.
      operationId: seedance_get_character_asset_liveness_status
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: CometAPI group ID.
          example: ag-example
        - name: expires
          in: query
          required: true
          schema:
            type: integer
          description: Unix timestamp from the signed verification URL.
        - name: signature
          in: query
          required: true
          schema:
            type: string
          description: Signature from the signed verification URL.
      responses:
        '200':
          description: Verification status returned.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - message
                  - data
                properties:
                  success:
                    type: boolean
                    description: Whether the request succeeded.
                  message:
                    type: string
                    description: Status or error message.
                  data:
                    $ref: '#/components/schemas/LivenessStatus'
              examples:
                success:
                  summary: Successful response
                  value:
                    success: true
                    message: ''
                    data: {}
        '403':
          description: The signature is invalid or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: invalid signature
        '404':
          description: The group does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                message: asset group not found
      x-codeSamples:
        - lang: Shell
          label: Character asset request
          source: |-
            curl \
              "https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness/status?expires=<EXPIRES>&signature=<SIGNATURE>"
        - lang: Python
          label: Character asset request
          source: |
            import requests

            response = requests.get(
                "https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness/status?expires=<EXPIRES>&signature=<SIGNATURE>",
                timeout=30,
            )
            response.raise_for_status()
            print(response.json())
        - lang: JavaScript
          label: Character asset request
          source: |
            const response = await fetch(
              "https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness/status?expires=<EXPIRES>&signature=<SIGNATURE>",
              { method: "GET" },
            );

            if (!response.ok) throw new Error(await response.text());
            console.log(await response.json());
components:
  schemas:
    LivenessStatus:
      type: object
      required:
        - name
        - status
        - activated
      properties:
        name:
          type: string
          description: Asset group name.
        status:
          type: string
          enum:
            - pending
            - active
            - expired
          description: Group status.
        activated:
          type: boolean
          description: Whether the verification session is active.
    ErrorResponse:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          description: Whether the request succeeded.
        message:
          type: string
          description: Description of the request error.
        data:
          type:
            - object
            - array
            - 'null'
          description: Error details when returned.
      additionalProperties: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.