Documentation
Graphics
Graphics
Using the API to view your graphics
/api/v1/get-history
import axios from "axios";
interface History {
id: string;
prompt: string;
size: string;
style: string;
perspective: string;
robloxUserId: string;
quality: string;
previewUrl: string;
fullUrl: string;
};
interface Response {
success: boolean;
nextCursor: string;
history: History[];
}
const limit = 50; // max: 100, default: 10
const cursor = "some-cursor";
const response = await axios.get<Response>("/api/v1/get-history", {
params: {
limit,
cursor
},
headers: {
"x-api-key": "Bearer <your-token>"
}
});
const { nextCursor, history } = response.data;
console.log(nextCursor, history);