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-25T16:37:36.024Z",
"created_at": "2025-04-25T16:37:36.024Z",
"error": "qiqYdjGbOH",
"feedback": "thumbs_up",
"id": "1ed402cb-243f-48a0-9cd1-a4ea7d0600bb",
"kcl_version": "ewP0sLQgg8xuGDPU3TnH",
"metadata": {
"code": "xiElODHkZ0Qj",
"original_source_code": "A0iFbKEDolGPxxH3gwIXr",
"source_ranges": [
{
"file": "iNwZHAXyfkD1tOrEz1AFy",
"prompt": "sJDHwMwMjdDflAqBRehINmb34",
"range": {
"end": {
"column": 12,
"line": 25
},
"start": {
"column": 31,
"line": 3
}
}
}
]
},
"model_version": "s05JuH07KkjoCHo5zpx9NlJvsGe9",
"output_file": "Pu6LhIgrE4GEMm6WBVrw",
"project_name": "dN1GNH7EFAVrXACC4O",
"prompt": "tWRMdAYwDzJgQcArkNryMu6Xi",
"started_at": "2025-04-25T16:37:36.024Z",
"status": "in_progress",
"type": "text_to_kcl_iteration",
"updated_at": "2025-04-25T16:37:36.024Z",
"user_id": "270ff83e-cc04-4b15-b949-27f91aa39030"
}
],
"next_page": "yR8uR3Ri2LEwjTzWHMiAPTVF"
}