Seedance
获取真人认证状态
读取处于 pending 状态的真人形象素材组的签名认证状态。
GET
/
api
/
asset
/
groups
/
{id}
/
liveness
/
status
cURL
curl \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness/status?expires=<EXPIRES>&signature=<SIGNATURE>"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())
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());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/api/asset/groups/{id}/liveness/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cometapi.com/api/asset/groups/{id}/liveness/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups/{id}/liveness/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}使用 pending 真人组返回的签名认证 URL 访问状态接口。请求使用
响应包含认证页面名称、组状态和认证会话是否 active。
使用签名 URL 轮询接口,直到
expires 和 signature 查询值,不使用 access token。
curl \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness/status?expires=<EXPIRES>&signature=<SIGNATURE>"
| 字段 | 描述 |
|---|---|
data.name | 素材组名称。 |
data.status | pending、active 或 expired。 |
data.activated | 认证会话是否 active。 |
data.status=active。无效或过期签名返回 HTTP 403。组不存在时返回 HTTP 404。查询参数
最后修改于 2026年12月1日
⌘I
cURL
curl \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness/status?expires=<EXPIRES>&signature=<SIGNATURE>"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())
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());
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cometapi.com/api/asset/groups/{id}/liveness/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cometapi.com/api/asset/groups/{id}/liveness/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups/{id}/liveness/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}