分页查询当前用户素材(本站快照)
curl --request POST \
--url https://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"group_ids": [
"group-20260927130220-tffhm"
],
"status": "Active",
"name": "example",
"sort_by": "created_at",
"sort_order": "desc",
"page": 1,
"page_size": 30
}
'import requests
url = "https://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list"
payload = {
"group_ids": ["group-20260927130220-tffhm"],
"status": "Active",
"name": "example",
"sort_by": "created_at",
"sort_order": "desc",
"page": 1,
"page_size": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
group_ids: ['group-20260927130220-tffhm'],
status: 'Active',
name: 'example',
sort_by: 'created_at',
sort_order: 'desc',
page: 1,
page_size: 30
})
};
fetch('https://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/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://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/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([
'group_ids' => [
'group-20260927130220-tffhm'
],
'status' => 'Active',
'name' => 'example',
'sort_by' => 'created_at',
'sort_order' => 'desc',
'page' => 1,
'page_size' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list"
payload := strings.NewReader("{\n \"group_ids\": [\n \"group-20260927130220-tffhm\"\n ],\n \"status\": \"Active\",\n \"name\": \"example\",\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"page\": 1,\n \"page_size\": 30\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"group_ids\": [\n \"group-20260927130220-tffhm\"\n ],\n \"status\": \"Active\",\n \"name\": \"example\",\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"page\": 1,\n \"page_size\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"group_ids\": [\n \"group-20260927130220-tffhm\"\n ],\n \"status\": \"Active\",\n \"name\": \"example\",\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"page\": 1,\n \"page_size\": 30\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"id": 123,
"asset_id": "<string>",
"group_id": "<string>",
"name": "<string>",
"asset_type": "Image",
"lifecycle_state": "Ready",
"upstream_status": "Processing",
"upstream_error_code": "<string>"
}
],
"total": 123,
"page": 123
}
}素材上传与查询
分页查询素材
两类素材共用请求格式。不传分组筛选时查询当前类型下的全部分组;group_id 和 group_ids 二选一,指定的分组必须全部属于当前用户。status 按页面展示状态精确筛选,name 为不区分大小写的包含匹配。page 默认 1,page_size 默认 30,最大 100;sort_by 默认 created_at,sort_order 默认 desc。Processing 素材由服务端约每 15 秒后台同步上游状态。
POST
/
api
/
resource-channel
/
byteplus
/
{library}
/
assets
/
list
分页查询当前用户素材(本站快照)
curl --request POST \
--url https://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"group_ids": [
"group-20260927130220-tffhm"
],
"status": "Active",
"name": "example",
"sort_by": "created_at",
"sort_order": "desc",
"page": 1,
"page_size": 30
}
'import requests
url = "https://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list"
payload = {
"group_ids": ["group-20260927130220-tffhm"],
"status": "Active",
"name": "example",
"sort_by": "created_at",
"sort_order": "desc",
"page": 1,
"page_size": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
group_ids: ['group-20260927130220-tffhm'],
status: 'Active',
name: 'example',
sort_by: 'created_at',
sort_order: 'desc',
page: 1,
page_size: 30
})
};
fetch('https://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/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://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/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([
'group_ids' => [
'group-20260927130220-tffhm'
],
'status' => 'Active',
'name' => 'example',
'sort_by' => 'created_at',
'sort_order' => 'desc',
'page' => 1,
'page_size' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list"
payload := strings.NewReader("{\n \"group_ids\": [\n \"group-20260927130220-tffhm\"\n ],\n \"status\": \"Active\",\n \"name\": \"example\",\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"page\": 1,\n \"page_size\": 30\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"group_ids\": [\n \"group-20260927130220-tffhm\"\n ],\n \"status\": \"Active\",\n \"name\": \"example\",\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"page\": 1,\n \"page_size\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://router.aionclaw.ai/api/resource-channel/byteplus/{library}/assets/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"group_ids\": [\n \"group-20260927130220-tffhm\"\n ],\n \"status\": \"Active\",\n \"name\": \"example\",\n \"sort_by\": \"created_at\",\n \"sort_order\": \"desc\",\n \"page\": 1,\n \"page_size\": 30\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"id": 123,
"asset_id": "<string>",
"group_id": "<string>",
"name": "<string>",
"asset_type": "Image",
"lifecycle_state": "Ready",
"upstream_status": "Processing",
"upstream_error_code": "<string>"
}
],
"total": 123,
"page": 123
}
}授权
使用 Authorization: Bearer <API_KEY> 进行认证。
路径参数
AIGC 选择 virtual-assets;真人选择 real-human-assets。此变量只是文档复用,后端路径不变。
可用选项:
virtual-assets, real-human-assets 请求体
application/json
单个 BytePlus 分组 ID;与 group_ids 二选一
多个 BytePlus 分组 ID;与 group_id 二选一
Maximum array length:
100页面展示状态的精确筛选,如 Active、Processing、Failed、Creating、Unknown;不区分大小写
Maximum string length:
24素材名称模糊筛选,不区分大小写;% 和 _ 按普通字符匹配
Maximum string length:
64可用选项:
created_at, updated_at, name, status 可用选项:
asc, desc 必填范围:
1 <= x <= 10000必填范围:
1 <= x <= 100