Seedance
Kích hoạt xác minh người thật
Kích hoạt phiên xác minh người thật có chữ ký cho nhóm tài sản nhân vật đang chờ.
POST
/
api
/
asset
/
groups
/
{id}
/
liveness
cURL
curl -X POST \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>"import requests
response = requests.post(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>",
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>",
{ method: "POST" },
);
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/api/asset/groups/{id}/liveness",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cometapi.com/api/asset/groups/{id}/liveness"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cometapi.com/api/asset/groups/{id}/liveness")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups/{id}/liveness")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}
Kích hoạt phiên xác minh cho nhóm
Phản hồi chứa
real đang chờ. Dùng các giá trị truy vấn expires và signature từ liveness.platform_wrapper_url của nhóm. Endpoint này dùng URL đã ký để kiểm soát quyền truy cập và không cần mã thông báo truy cập.
curl -X POST \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>"
data.session_ref. Trang xác minh dùng giá trị này để mở dịch vụ xác minh. Không lưu hoặc dùng lại tham chiếu phiên làm ID nhóm.
Nếu chữ ký không hợp lệ hoặc đã hết hạn, endpoint trả về HTTP 403. Endpoint chỉ chấp nhận nhóm người thật đang chờ. Sau khi người đó hoàn tất xác minh, dùng Truy xuất nhóm tài sản nhân vật hoặc Truy xuất trạng thái xác minh cho đến khi nhóm chuyển thành active.Tham số truy vấn
Lần sửa đổi cuối 1 tháng 12, 2026
⌘I
cURL
curl -X POST \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>"import requests
response = requests.post(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>",
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>",
{ method: "POST" },
);
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/api/asset/groups/{id}/liveness",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cometapi.com/api/asset/groups/{id}/liveness"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cometapi.com/api/asset/groups/{id}/liveness")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups/{id}/liveness")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}