API → MLList all ML promptshidden
hidden
Parameters
Name
Type
Req.
Possible values
created_at_ascending
: Sort in increasing order of "created_at".created_at_descending
: Sort in decreasing order of "created_at".
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
items
arrayoptionalArray of
Possible values
thumbs_up
: Thumbs up.thumbs_down
: Thumbs down.accepted
: Accepted.rejected
: Rejected.
metadata
objectoptionalObject Properties
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
Possible values
text_to_cad
: Text to CAD.text_to_kcl
: Text to KCL.text_to_kcl_iteration
: Text to KCL iteration.text_to_kcl_multi_file_iteration
: Text to KCL iteration with multiple files.
get
/ml-prompts$ curl "https://api.zoo.dev/ml-prompts" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"items": [
{
"completed_at": "2025-05-22T02:02:53.651Z",
"created_at": "2025-05-22T02:02:53.651Z",
"error": "VthUx7wmSbx0SA",
"feedback": "rejected",
"id": "a7bdce32-a9c3-4f28-81f5-f2559fe2fb1c",
"kcl_version": "w5r3sOBhz0Soo9rdUazv",
"metadata": {
"code": "zhan3MNlQDBQ1UhHD93jiPz",
"original_source_code": "RBRk7WueZd3NE",
"source_ranges": [
{
"file": "AkNp2DCVA9Mt3qQdsp",
"prompt": "zGqrVhjJw83VJfCnDLhLYkYnsQu5x",
"range": {
"end": {
"column": 29,
"line": 19
},
"start": {
"column": 4,
"line": 12
}
}
}
]
},
"model_version": "OfI7JVeWoO33KV1YgP3l",
"output_file": "KdkW",
"project_name": "22akkoQq2iNN7",
"prompt": "jIHUWBaMS2cSo9ACUYYLuhPUVcvr",
"started_at": "2025-05-22T02:02:53.652Z",
"status": "failed",
"type": "text_to_cad",
"updated_at": "2025-05-22T02:02:53.652Z",
"user_id": "ccd16e34-7132-42b3-9588-e7b0e708e7d5"
}
],
"next_page": "DjhwCkI6WXR3xOcVe8O8Gqf4"
}