Animation
List Sessions

List User Sessions

Retrieve a list of user's mesh animation sessions.

Request

GET https://api.csm.ai/mesh-animation

Parameters

limit OPTIONAL
type: string
in: query
default: 10
description: Specifies the number of records to be returned in the response.


page OPTIONAL
type: string
in: query
description: Defines the page of results by specifying the number of records to skip.

Code Snippets

Python

import requests
 
url = "https://api.csm.ai/mesh-animation?page=1"
 
payload = ""
headers = {
  'x-api-key': '<X-API_KEY>',
}
 
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?page=1',
  headers: {
    'x-api-key': '<X-API_KEY>',
  }
};
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?page=1' \
--header 'x-api-key: <X-API_KEY>'

Response

{
  "error": "",
  "message": "Retrieved",
  "statusCode": 200,
  "data": {
    "results": [
      {
        "_id": "65f2f978df5bcca6308b0b43",
        "session_code": "SESSION_11_1710422392_4549402",
        "image_to_3d_session_code": "SESSION_11_1708500127_8261650",
        "render_url": "https://image-url.com/render_front.jpg",
        "mesh_url": "https://image-url.com/mesh.zip",
        "thumbnail": "https://image-url.com/uploaded/SESSION_1706858388_2905689/RGB_0_1706858388_imageto3d.jpg",
        "animation_joint_dict": {
          "Pelvis": [393.7, 338.3],
          "R_Hip": [371.2, 338.3],
          "R_Knee": [384.7, 401.2],
          "R_Ankle": [386.9, 464.2],
          "L_Hip": [416.2, 338.3],
          "L_Knee": [420.7, 394.5],
          "L_Ankle": [445.4, 446.2],
          "Torso": [389.0, 293.3],
          "Neck": [403.4, 243.1],
          "Nose": [411.4, 223.1],
          "Head": [409.4, 196.7],
          "L_Shoulder": [429.7, 248.4],
          "L_Elbow": [443.2, 315.8],
          "L_Wrist": [449.9, 295.6],
          "R_Shoulder": [364.5, 248.4],
          "R_Elbow": [353.2, 286.6],
          "R_Wrist": [346.5, 315.8]
        },
        "status": "init_done",
        "is_deleted": false,
        "user_demo": false
      }
    ],
    "page": 1,
    "skip": 0,
    "limit": 20,
    "totalPages": 1,
    "totalResults": 15,
    "credits": 20
  }
}