Seedance
Truy xuất nhóm tài sản nhân vật
Truy xuất nhóm tài sản nhân vật theo ID và đọc trạng thái hoặc liên kết xác minh người thật.
GET
/
api
/
asset
/
groups
/
{id}
cURL
curl \
https://api.cometapi.com/api/asset/groups/<GROUP_ID> \
-H "Authorization: $COMETAPI_ACCESS_TOKEN"import os
import requests
response = requests.get(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>",
headers={"Authorization": os.environ["COMETAPI_ACCESS_TOKEN"]},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>",
{ headers: { Authorization: process.env.COMETAPI_ACCESS_TOKEN } },
);
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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}Truy xuất một nhóm thuộc tài khoản đã xác thực. Gửi mã thông báo truy cập thô trong tiêu đề
Đọc
Sau khi xác minh người thật hoàn tất, hãy thăm dò endpoint này đến khi
Authorization mà không có tiền tố Bearer.
curl \
https://api.cometapi.com/api/asset/groups/<GROUP_ID> \
-H "Authorization: $COMETAPI_ACCESS_TOKEN"
data.status trước khi tải tài sản lên. Dùng các nhóm có trạng thái active để tải lên. Nhóm người thật đang chờ bao gồm data.liveness.platform_wrapper_url, là URL đã ký để mở quy trình xác minh.
| Trường | Mô tả |
|---|---|
data.id | ID nhóm. |
data.group_type | virtual hoặc real. |
data.status | pending, active hoặc expired. |
data.liveness.platform_wrapper_url | URL xác minh đã ký cho nhóm người thật đang chờ. |
data.liveness.activated | Cho biết phiên xác minh có đang hoạt động hay không. |
data.liveness.hint | Gợi ý thao tác tùy chọn được trả về cho nhóm. |
data.status=active, rồi dùng Tải lên tài sản nhân vật.Lần sửa đổi cuối 1 tháng 12, 2026
⌘I
cURL
curl \
https://api.cometapi.com/api/asset/groups/<GROUP_ID> \
-H "Authorization: $COMETAPI_ACCESS_TOKEN"import os
import requests
response = requests.get(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>",
headers={"Authorization": os.environ["COMETAPI_ACCESS_TOKEN"]},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch(
"https://api.cometapi.com/api/asset/groups/<GROUP_ID>",
{ headers: { Authorization: process.env.COMETAPI_ACCESS_TOKEN } },
);
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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cometapi.com/api/asset/groups/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "",
"data": {}
}