Group Asset Library List
curl --request POST \
--url https://powertokens.ai/api/v1/asset/groups/assets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"page_size": 12,
"asset_id": "",
"name": "",
"type": 0,
"status": 0,
"group_id": "group-20260604102314-bnz4j"
}
'import requests
url = "https://powertokens.ai/api/v1/asset/groups/assets"
payload = {
"page": 1,
"page_size": 12,
"asset_id": "",
"name": "",
"type": 0,
"status": 0,
"group_id": "group-20260604102314-bnz4j"
}
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: 1,
page_size: 12,
asset_id: '',
name: '',
type: 0,
status: 0,
group_id: 'group-20260604102314-bnz4j'
})
};
fetch('https://powertokens.ai/api/v1/asset/groups/assets', 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/assets",
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' => 1,
'page_size' => 12,
'asset_id' => '',
'name' => '',
'type' => 0,
'status' => 0,
'group_id' => 'group-20260604102314-bnz4j'
]),
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/assets"
payload := strings.NewReader("{\n \"page\": 1,\n \"page_size\": 12,\n \"asset_id\": \"\",\n \"name\": \"\",\n \"type\": 0,\n \"status\": 0,\n \"group_id\": \"group-20260604102314-bnz4j\"\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/assets")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 1,\n \"page_size\": 12,\n \"asset_id\": \"\",\n \"name\": \"\",\n \"type\": 0,\n \"status\": 0,\n \"group_id\": \"group-20260604102314-bnz4j\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://powertokens.ai/api/v1/asset/groups/assets")
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\": 1,\n \"page_size\": 12,\n \"asset_id\": \"\",\n \"name\": \"\",\n \"type\": 0,\n \"status\": 0,\n \"group_id\": \"group-20260604102314-bnz4j\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"list": [
{
"id": 174,
"asset_id": "asset-20260604102315-bhlt9",
"name": "5308ce78897416214ab5bdc640716fb7.jpg",
"type": 1,
"file_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260604102312/ca517b10651e5a5f449976f10273e790.jpg",
"thumbnail_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/compressed_images/1780539902658115900.webp",
"file_size": 657139,
"duration": 0,
"ext": ".jpg",
"source": 0,
"created_at": 1780539794,
"updated_at": 1780539904,
"status": 2,
"fail_reason": ""
}
],
"total": 1
},
"msg": ""
}asset library
Group Asset List
POST
/
v1
/
asset
/
groups
/
assets
Group Asset Library List
curl --request POST \
--url https://powertokens.ai/api/v1/asset/groups/assets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"page_size": 12,
"asset_id": "",
"name": "",
"type": 0,
"status": 0,
"group_id": "group-20260604102314-bnz4j"
}
'import requests
url = "https://powertokens.ai/api/v1/asset/groups/assets"
payload = {
"page": 1,
"page_size": 12,
"asset_id": "",
"name": "",
"type": 0,
"status": 0,
"group_id": "group-20260604102314-bnz4j"
}
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: 1,
page_size: 12,
asset_id: '',
name: '',
type: 0,
status: 0,
group_id: 'group-20260604102314-bnz4j'
})
};
fetch('https://powertokens.ai/api/v1/asset/groups/assets', 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/assets",
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' => 1,
'page_size' => 12,
'asset_id' => '',
'name' => '',
'type' => 0,
'status' => 0,
'group_id' => 'group-20260604102314-bnz4j'
]),
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/assets"
payload := strings.NewReader("{\n \"page\": 1,\n \"page_size\": 12,\n \"asset_id\": \"\",\n \"name\": \"\",\n \"type\": 0,\n \"status\": 0,\n \"group_id\": \"group-20260604102314-bnz4j\"\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/assets")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 1,\n \"page_size\": 12,\n \"asset_id\": \"\",\n \"name\": \"\",\n \"type\": 0,\n \"status\": 0,\n \"group_id\": \"group-20260604102314-bnz4j\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://powertokens.ai/api/v1/asset/groups/assets")
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\": 1,\n \"page_size\": 12,\n \"asset_id\": \"\",\n \"name\": \"\",\n \"type\": 0,\n \"status\": 0,\n \"group_id\": \"group-20260604102314-bnz4j\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"list": [
{
"id": 174,
"asset_id": "asset-20260604102315-bhlt9",
"name": "5308ce78897416214ab5bdc640716fb7.jpg",
"type": 1,
"file_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/upload/20260604102312/ca517b10651e5a5f449976f10273e790.jpg",
"thumbnail_url": "https://pub-4b7cc9eedad945ec9c28d5548493e66c.r2.dev/compressed_images/1780539902658115900.webp",
"file_size": 657139,
"duration": 0,
"ext": ".jpg",
"source": 0,
"created_at": 1780539794,
"updated_at": 1780539904,
"status": 2,
"fail_reason": ""
}
],
"total": 1
},
"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