Mesh-Animation
1 List User Sessions

Introduction

List user's mesh animation sessions.

List Users Sessions

Request

GET /mesh-animation

Parameters


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


page OPTIONAL
type : string
in : query
description : Number of records to be skipped.

Code Snippets

Python

import requests

url = "https://api.csm.ai:5566/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:5566/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:5566/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",
        "user_id": null,
        "render_url": "https://image-url.com/render_front.jpg",
        "mesh_url": "https://image-url.com/mesh.zip",
        "temp_prompt": {
          "text": "",
          "mesh_url": "",
          "_id": "65f2f978df5bcca6308b0b42"
        },
        "thumbnail": "https://image-url.com/uploaded/SESSION_1706858388_2905689/RGB_0_1706858388_imageto3d.jpg",
        "animation_url": "",
        "animation_usdz_url": "",
        "status": "init_done",
        "is_deleted": false,
        "admin_demo": false,
        "user_demo": false,
        "prompts": [

        ],
        "animation_library": [

        ],
        "animation_joint_dict": {
          "Pelvis": [
            393.70306396484375,
            338.28485107421875
          ],
          "R_Hip": [
            371.2232360839844,
            338.28485107421875
          ],
          "R_Knee": [
            384.71112060546875,
            401.22833251953125
          ],
          "R_Ankle": [
            386.9591064453125,
            464.1718444824219
          ],
          "L_Hip": [
            416.182861328125,
            338.28485107421875
          ],
          "L_Knee": [
            420.6788330078125,
            394.4844055175781
          ],
          "L_Ankle": [
            445.4066162109375,
            446.18798828125
          ],
          "Torso": [
            389.019775390625,
            293.3251953125
          ],
          "Neck": [
            403.4443054199219,
            243.1202850341797
          ],
          "Nose": [
            411.4058837890625,
            223.07579040527344
          ],
          "Head": [
            409.4389343261719,
            196.66200256347656
          ],
          "L_Shoulder": [
            429.6707458496094,
            248.36558532714844
          ],
          "L_Elbow": [
            443.15863037109375,
            315.8050231933594
          ],
          "L_Wrist": [
            449.902587890625,
            295.5732116699219
          ],
          "R_Shoulder": [
            364.4792785644531,
            248.36558532714844
          ],
          "R_Elbow": [
            353.2393798828125,
            286.5812683105469
          ],
          "R_Wrist": [
            346.49542236328125,
            315.8050231933594
          ]
        }
      },

    ],
    "page": 1,
    "skip": 0,
    "limit": 20,
    "totalPages": 1,
    "totalResults": 15,
    "credits": 20
  }
}