Characters
Get a character
Get one of your characters.
GET
https://api.sangtao.ai/v2/characters/{id}Authorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe ID in the path.
Response
One Character — its fields are listed under List characters.
Errors
| Status | errorCode | When |
|---|---|---|
| 404 | CHARACTER_NOT_FOUND | No such character, or it is not yours |
An error has success: false, errorCode as above, and error is a sentence saying what went wrong.
GET
/characters/{id}curl "https://api.sangtao.ai/v2/characters/ch_3kT9qPz0B" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "ch_3kT9qPz0B",
"name": "Mèo Mướp",
"appearanceDescription": "orange tabby cat, chubby body, half-closed drowsy eyes, white belly patch",
"biography": "Chú mèo lười của tiệm sách, hay ngủ trên quầy thu ngân.",
"aliases": "Mướp, Bé Mướp",
"publishStatus": null,
"createdAt": "2026-11-08T09:12:44Z",
"updatedAt": "2026-11-08T09:20:01Z",
"refImages": [
{
"id": "ci_8hQ2mZr4K",
"imageUrl": "https://…/a.png",
"thumbnailUrl": "https://…/a_thumb.webp",
"sortOrder": 0
}
]
}
}GET
/characters/{id}curl "https://api.sangtao.ai/v2/characters/ch_3kT9qPz0B" \
-H "X-Api-Key: YOUR_API_KEY"{
"success": true,
"data": {
"id": "ch_3kT9qPz0B",
"name": "Mèo Mướp",
"appearanceDescription": "orange tabby cat, chubby body, half-closed drowsy eyes, white belly patch",
"biography": "Chú mèo lười của tiệm sách, hay ngủ trên quầy thu ngân.",
"aliases": "Mướp, Bé Mướp",
"publishStatus": null,
"createdAt": "2026-11-08T09:12:44Z",
"updatedAt": "2026-11-08T09:20:01Z",
"refImages": [
{
"id": "ci_8hQ2mZr4K",
"imageUrl": "https://…/a.png",
"thumbnailUrl": "https://…/a_thumb.webp",
"sortOrder": 0
}
]
}
}