List User Sessions
Retrieve a list of Image-to-3D sessions for a user.
Request
GET https://api.csm.ai/image-to-3d-sessions
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/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/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/image-to-3d-sessions?page=1' \
--header 'x-api-key: <X-API_KEY>'
Response
{
"error": "",
"message": "Retrieved",
"statusCode": 200,
"data": {
"results": [
{
"_id": "65cf0f9a87cdf9b37e58b1c4",
"user_id": null,
"session_code": "SESSION_1689255965_4270760",
"image_url": "https://via.placeholder.com/300/09f/fff.png",
"input_image": "",
"caption": "",
"discord_user_id": "",
"user_name": "",
"email": "user@gmail.com",
"preview_mesh_url": "",
"mesh_url_usdz": "",
"mesh_url_glb": "",
"reactions_count": 0,
"emoji_reactions": {
"heart": 0,
"fire": 0,
"exploding_head": 0,
"meh": 0,
"dislike": 0
},
"texture_resolution": 0,
"mesh_url": "",
"polished_mesh_url_usdz": "",
"polished_mesh_url_glb": "",
"polished_mesh_url": "",
"mesh_url_obj": "",
"mesh_url_zip": "",
"preview_mesh_url_zip": "",
"preview_mesh_url_glb": "",
"preview_mesh_url_usdz": "",
"preview_mesh_url_fbx": "",
"mesh_url_fbx": "",
"mp4_url": "",
"designer_mesh_url": "",
"preview_mesh_url_3mf": "",
"mesh_url_3mf": "",
"session_gif": "",
"user_image": "",
"percentage": 0,
"price": 0,
"status": "spin_generate_processing",
"topology": "",
"resolution": "",
"source": "external",
"demo": false,
"user_demo": false,
"private": true,
"debug": false,
"random_poses": true,
"inference": [
],
"output_id": "d5da0bf2-9e38-405e-a955-66bbbe438d3d",
"animated_walk_url": "",
"animated_run_url": "",
"animated_jump_url": "",
"auto_gen_3d": false,
"server_type": "fast",
"model_version": "2.0-turbo",
"selected_spin": "",
"is_deleted": false,
"tier_at_creation": "creative_pro",
"reaction_by_admin": "",
"manual_segmentation": false,
"preview_mesh": "turbo",
"pixel_alignment": "highest",
"model_resolution": "high",
"product_version": "1.0.0",
"diffusion_time_steps": 20,
"selected_spin_index": 0,
"spins": [
],
"created_at": "2024-02-16T07:32:42.457Z",
"updated_at": "2024-02-16T07:32:45.123Z"
}
],
"page": 0,
"skip": 0,
"limit": 10,
"totalPages": 1,
"totalResults": 1,
"credits": 20,
"image_to_3d_credits": 0
}
}