Seedance
Pobierz status weryfikacji osoby rzeczywistej
Odczytaj podpisany status weryfikacji oczekującej grupy zasobów postaci osoby rzeczywistej.
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": {}
}Odczytaj punkt końcowy statusu z podpisanego URL weryfikacji zwróconego dla oczekującej grupy osoby rzeczywistej. Żądanie używa wartości zapytania
Odpowiedź zawiera nazwę strony weryfikacji, status grupy oraz informację, czy sesja weryfikacji jest aktywna.
Odpytuj punkt końcowy za pomocą podpisanego URL, aż
expires i signature i nie wymaga tokenu dostępu.
curl \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness/status?expires=<EXPIRES>&signature=<SIGNATURE>"
| Pole | Opis |
|---|---|
data.name | Nazwa grupy zasobów. |
data.status | pending, active lub expired. |
data.activated | Informacja, czy sesja weryfikacji jest aktywna. |
data.status=active. Nieprawidłowy lub wygasły podpis zwraca HTTP 403. Brak grupy zwraca HTTP 404.Parametry zapytania
Ostatnia modyfikacja 1 grudnia 2026
⌘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": {}
}