Seedance
Attiva verifica della persona reale
Attiva una sessione di verifica firmata per un gruppo di risorse del personaggio in attesa.
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": {}
}Activate a verification session for a pending
La risposta contiene
real group. Use the expires and signature query values from the group’s liveness.platform_wrapper_url. This endpoint uses the signed URL as its access control and does not use an access token.
curl -X POST \
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>/liveness?expires=<EXPIRES>&signature=<SIGNATURE>"
data.session_ref. Il wrapper usa questo valore per aprire il provider. Non salvare né riutilizzare il riferimento come ID gruppo.
Una firma non valida o scaduta restituisce HTTP 403. L’endpoint accetta solo un gruppo di persona reale in attesa. Dopo che la persona ha completato la verifica, usa Recupera un gruppo di risorse del personaggio oppure Recupera lo stato della verifica finché il gruppo non diventa active.Parametri della query
Ultima modifica il 1 dicembre 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": {}
}