角色
列出角色
返回最近创建的有效角色,按创建时间倒序。每页最多 100 项,不提供游标。仅以 type=vsplat 创建的角色不会被列出,请按 ID 读取。
GET
/
v1
/
characters
列出角色
curl --request GET \
--url https://apis.viggle.ai/v1/characters \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apis.viggle.ai/v1/characters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apis.viggle.ai/v1/characters"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"status": "pending",
"name": "<string>",
"progress": 50,
"capabilities": [
"<string>"
],
"created_at": "<string>",
"completed_at": "<string>",
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
},
"type": "render",
"vsplat": {
"status": "queued",
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
},
"glb": {
"status": "queued",
"skeletons": [
"mixamo"
],
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}
}
]
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}授权
⌘I
列出角色
curl --request GET \
--url https://apis.viggle.ai/v1/characters \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apis.viggle.ai/v1/characters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apis.viggle.ai/v1/characters"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"status": "pending",
"name": "<string>",
"progress": 50,
"capabilities": [
"<string>"
],
"created_at": "<string>",
"completed_at": "<string>",
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
},
"type": "render",
"vsplat": {
"status": "queued",
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
},
"glb": {
"status": "queued",
"skeletons": [
"mixamo"
],
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}
}
]
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}