Get Session Detail
Retrieve session details for a specific mesh animation session. This API allows access to animations from the animation library as well as text-to-animation results.
Request
GET https://api.csm.ai/mesh-animation/<Session Code>
Code Snippets
Python
import requests
url = "https://api.csm.ai/mesh-animation/SESSION_11_1710422392_4549402"
payload = {}
headers = {
'x-api-key': '<X-API_KEY>',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Node.js
var request = require('request');
var options = {
method: 'GET',
url: 'https://api.csm.ai/mesh-animation/SESSION_11_1710422392_4549402',
headers: {
'x-api-key': '<X-API_KEY>',
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
Curl
curl -k --location 'https://api.csm.ai/mesh-animation/SESSION_11_1710422392_4549402' \
--header 'x-api-key: <X-API_KEY>'
Response
{
"error": "",
"message": "Retrieved",
"statusCode": 200,
"data": {
"_id": "65d5d3038ef507e197dfd638",
"session_code": "SESSION_11_1710422392_4549402",
"image_to_3d_session_code": "SESSION_12_1710422392_4549402",
"render_url": "https://image-url.com/render_front.jpg",
"mesh_url": "https://image-url.com/mesh.zip",
"thumbnail": "https://image-url.com/SESSION_11_1710422392_4549402.jpg",
"animation_url": "https://image-url.com/SESSION_11_1710422392_4549402_Moon walk.fbx",
"status": "predefined_done",
"prompts": [
{
"_id": "65f2f507fc53d02bcdb9b2c4",
"session_code": "SESSION_11_1710422392_4549402",
"text": "The person is enthusiastically blowing into a trumpet, puffing up their cheeks, feet stomping to the beat.",
"mesh_url": "https://image-url.com/SESSION_1708500764_1882619_trumpet_animation.fbx",
"usdz_url": "https://image-url.com/SESSION_1708500764_1882619_trumpet_animation.usdz",
"status": "text_done",
"created_at": "2024-03-14T13:00:55.611Z",
"updated_at": "2024-03-14T13:23:11.749Z"
}
],
"animation_library": [
{
"label": "Angry point",
"url": "https://image-url.com/animations/angry_point.fbx",
"_id": "65d5da7acb3771fdf2ae27a5"
},
{
"label": "Jump",
"url": "https://image-url.com/animations/jump.fbx",
"_id": "65d5da7acb3771fdf2ae27a6"
}
],
"animation_joint_dict": {
"Pelvis": [398.8, 304.4],
"R_Hip": [378.9, 301.9],
"R_Knee": [371.4, 376.4],
"R_Ankle": [366.5, 455.9],
"L_Hip": [418.6, 306.9],
"L_Knee": [426.1, 381.4],
"L_Ankle": [433.5, 455.9],
"Torso": [396.3, 257.2],
"Neck": [401.2, 199.3],
"Nose": [404.3, 178.4],
"Head": [403.7, 157.9],
"L_Shoulder": [438.5, 210.0],
"L_Elbow": [450.9, 264.7],
"L_Wrist": [463.3, 304.4],
"R_Shoulder": [359.0, 210.0],
"R_Elbow": [344.1, 262.2],
"R_Wrist": [334.2, 311.8]
},
"created_at": "2024-02-21T10:40:03.220Z",
"updated_at": "2024-03-14T13:23:11.790Z"
}
}