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": {}
}從等待中的真人群組所回傳的已簽名驗證 URL 讀取狀態端點。要求使用
回應包含驗證頁面名稱、群組狀態,以及驗證工作階段是否啟用。
使用已簽名 URL 輪詢端點,直到
expires 和 signature 查詢值,不需要存取權杖。
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 | 驗證工作階段是否已啟用。 |
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": {}
}