group list
curl --request POST \
--url https://powertokens.ai/api/v1/asset/groups/list \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"page_size": 20,
"page": 1,
"group_type": 1,
"real_human_type": 1
}
'import requests
url = "https://powertokens.ai/api/v1/asset/groups/list"
payload = {
"page_size": 20,
"page": 1,
"group_type": 1,
"real_human_type": 1
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({page_size: 20, page: 1, group_type: 1, real_human_type: 1})
};
fetch('https://powertokens.ai/api/v1/asset/groups/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://powertokens.ai/api/v1/asset/groups/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'page_size' => 20,
'page' => 1,
'group_type' => 1,
'real_human_type' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://powertokens.ai/api/v1/asset/groups/list"
payload := strings.NewReader("{\n \"page_size\": 20,\n \"page\": 1,\n \"group_type\": 1,\n \"real_human_type\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://powertokens.ai/api/v1/asset/groups/list")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"page_size\": 20,\n \"page\": 1,\n \"group_type\": 1,\n \"real_human_type\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://powertokens.ai/api/v1/asset/groups/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page_size\": 20,\n \"page\": 1,\n \"group_type\": 1,\n \"real_human_type\": 1\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"list": [
{
"group_id": "group-20260603105838-5ssn8",
"group_name": "风景实拍照片0603_1_group",
"group_cover_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260507/63070f5b976c52d590650b39049f2689.jpeg"
},
{
"group_id": "group-20260603104020-d7rcc",
"group_name": "风景实拍照片0603_group",
"group_cover_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260507/63070f5b976c52d590650b39049f2689.jpeg"
},
{
"group_id": "group-20260514152200-5d7cj",
"group_name": "测试改名2",
"group_cover_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260507/63070f5b976c52d590650b39049f2689.jpeg"
}
],
"total": 3
},
"msg": ""
}asset library
Group List
POST
/
v1
/
asset
/
groups
/
list
group list
curl --request POST \
--url https://powertokens.ai/api/v1/asset/groups/list \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"page_size": 20,
"page": 1,
"group_type": 1,
"real_human_type": 1
}
'import requests
url = "https://powertokens.ai/api/v1/asset/groups/list"
payload = {
"page_size": 20,
"page": 1,
"group_type": 1,
"real_human_type": 1
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({page_size: 20, page: 1, group_type: 1, real_human_type: 1})
};
fetch('https://powertokens.ai/api/v1/asset/groups/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://powertokens.ai/api/v1/asset/groups/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'page_size' => 20,
'page' => 1,
'group_type' => 1,
'real_human_type' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://powertokens.ai/api/v1/asset/groups/list"
payload := strings.NewReader("{\n \"page_size\": 20,\n \"page\": 1,\n \"group_type\": 1,\n \"real_human_type\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://powertokens.ai/api/v1/asset/groups/list")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"page_size\": 20,\n \"page\": 1,\n \"group_type\": 1,\n \"real_human_type\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://powertokens.ai/api/v1/asset/groups/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page_size\": 20,\n \"page\": 1,\n \"group_type\": 1,\n \"real_human_type\": 1\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"list": [
{
"group_id": "group-20260603105838-5ssn8",
"group_name": "风景实拍照片0603_1_group",
"group_cover_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260507/63070f5b976c52d590650b39049f2689.jpeg"
},
{
"group_id": "group-20260603104020-d7rcc",
"group_name": "风景实拍照片0603_group",
"group_cover_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260507/63070f5b976c52d590650b39049f2689.jpeg"
},
{
"group_id": "group-20260514152200-5d7cj",
"group_name": "测试改名2",
"group_cover_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260507/63070f5b976c52d590650b39049f2689.jpeg"
}
],
"total": 3
},
"msg": ""
}Headers
Official website API key
Note that the server will intercept the request if this value is left unfilled in JAVA(eg:powertokensAi)
application/json
Body
application/json
⌘I