Image-to-3d
7 List Users Sessions

Introduction

List users image-to-3d sessions.

List Users Sessions

Request

GET /image-to-3d-sessions

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/image-to-3d-sessions?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/image-to-3d-sessions?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/image-to-3d-sessions?page=1' \
--header 'x-api-key: <X-API_KEY>'

Response

{
    "error": "",
    "message": "Retrieved",
    "statusCode": 200,
    "data": {
        "results": [
            {
                "_id": "64b0ee82be0eb6b33b091c62",
                "user_id": null,
                "session_code": "SESSION_1689315924_1313536",
                "image_url": "https://via.placeholder.com/300/09f/fff.png",
                "input_image": "",
                "discord_user_id": "",
                "user_name": "",
                "email": "",
                "mesh_url_usdz": "",
                "mesh_url_glb": "",
                "mesh_url": "",
                "mp4_url": "",
                "mesh_url_zip":"",
                "preview_mesh_url_zip":"",
                "preview_mesh_url_glb":"",
                "preview_mesh_url_usdz":"",
                "polished_mesh_url_usdz":"",
                "polished_mesh_url_glb":"",
                "polished_mesh_url":"",
                "mesh_url_obj":"",
                "session_gif": "",
                "percentage": 0,
                "status": "uploaded",
                "experimental_model": false,
                "debug": false,
                "random_poses": true,
                "private":true,
                "demo":false,
                "price":0,
                "source": "external",
                "inference": [
                    {
                        "image_name": "U1.png",
                        "image_url": "https://imageto3d.blob.core.windows.net/data/inference_outputs/admin@yopmail.com/973d9663-e92c-45b0-b829-62b68f587824/U1.png?se=2032-08-28T14%3A43%3A21Z&sp=r&sv=2022-11-02&sr=b&sig=L/PH2MLa6WW90LpfeLTsRg4/%2BwsXOJDMfdcYVNZER4c%3D",
                        "height": 256,
                        "width": 256
                    },
                    {
                        "image_name": "U2.png",
                        "image_url": "https://imageto3d.blob.core.windows.net/data/inference_outputs/admin@yopmail.com/973d9663-e92c-45b0-b829-62b68f587824/U2.png?se=2032-08-28T14%3A43%3A21Z&sp=r&sv=2022-11-02&sr=b&sig=6Wch45UD78VsmQEEvZs16VvPYCqIqlCWvM77kZQmRcQ%3D",
                        "height": 256,
                        "width": 256
                    },
                    {
                        "image_name": "U3.png",
                        "image_url": "https://imageto3d.blob.core.windows.net/data/inference_outputs/admin@yopmail.com/973d9663-e92c-45b0-b829-62b68f587824/U3.png?se=2032-08-28T14%3A43%3A21Z&sp=r&sv=2022-11-02&sr=b&sig=9t1gTpbzYtc2o1hIvoZ%2B15i9Lic5s19nypw3q3uwGKg%3D",
                        "height": 256,
                        "width": 256
                    },
                    {
                        "image_name": "U4.png",
                        "image_url": "https://imageto3d.blob.core.windows.net/data/inference_outputs/admin@yopmail.com/973d9663-e92c-45b0-b829-62b68f587824/U4.png?se=2032-08-28T14%3A43%3A21Z&sp=r&sv=2022-11-02&sr=b&sig=VdaTfVXAMh5u0XVolz3ruX1TzbSPorLRo9U/YCw2cso%3D",
                        "height": 256,
                        "width": 256
                    }
                ],
                "output_id": "973d9663-e92c-45b0-b829-62b68f587824",
                "user_image":"",
                "model_version":"1.0",
                "is_deleted": false,
                "created_at": "2023-07-14T06:43:14.094Z",
                "updated_at": "2023-07-14T06:43:21.298Z"
            }
        ],
        "page": 0,
        "skip": 0,
        "limit": 10,
        "totalPages": 1,
        "totalResults": 1,
        "credits": 20,
        "image_to_3d_credits": 0
    }
}