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-17T14:07:24.049Z",
"created_at": "2025-04-17T14:07:24.049Z",
"error": "ad0pToq8Y75HaGpWVf59aEB",
"feedback": "thumbs_down",
"id": "bd850e3a-1a5a-42da-a1b7-4461e6cc13a3",
"kcl_version": "aw9ffth6zjhGNzTKDwibMNSqk",
"metadata": {
"code": "OeYCeYQk29xs488InaXUk8xO554q",
"original_source_code": "vUDftnnctIfvLz4pDZVfpgJJS",
"source_ranges": [
{
"file": "kVy",
"prompt": "B2QHSqsJhh0",
"range": {
"end": {
"column": 29,
"line": 20
},
"start": {
"column": 6,
"line": 24
}
}
}
]
},
"model_version": "N2FVTo4ObU0VeC2Ve4zMWlRGfSpRu",
"output_file": "V4VrBiTmTdl",
"project_name": "Yb",
"prompt": "M",
"started_at": "2025-04-17T14:07:24.049Z",
"status": "failed",
"type": "text_to_kcl",
"updated_at": "2025-04-17T14:07:24.049Z",
"user_id": "e87e0958-78a7-4b0f-b8d1-e6d628636c66"
}
],
"next_page": "Z5b6UnILCuUSWEEJ4dVpHMintt"
}