API → ML → List 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-04-21T19:59:58.889Z",
"created_at": "2025-04-21T19:59:58.889Z",
"error": "JD9aP7YQdcm3J",
"feedback": "thumbs_down",
"id": "82ad5376-76e9-4715-ab7f-33f14183d693",
"kcl_version": "PL",
"metadata": {
"code": "ROuMIBaLhrxQOV",
"original_source_code": "iwq7afWrKOXOmNL8lvT6kwoMisyVHz",
"source_ranges": [
{
"file": "CK2xkIv2rI4Tv0IbI5ePcaMqKZ6",
"prompt": "kOoKYw0",
"range": {
"end": {
"column": 19,
"line": 27
},
"start": {
"column": 11,
"line": 16
}
}
}
]
},
"model_version": "9BX0y5jtlIU17wvcFd3hx6ONhd",
"output_file": "Ip",
"project_name": "7D",
"prompt": "cba9E8mFPWQEP6W14CUtIBQmLY",
"started_at": "2025-04-21T19:59:58.889Z",
"status": "completed",
"type": "text_to_kcl_iteration",
"updated_at": "2025-04-21T19:59:58.889Z",
"user_id": "75ea4ee2-3ceb-4c7b-a9d0-71fbd9ff2ff1"
}
],
"next_page": "rtqCERSd6tBD6L"
}