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,
get
/ml-prompts$ curl "https://api.zoo.dev/ml-prompts" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"items": [
{
"completed_at": "2025-01-09T18:25:43.176Z",
"created_at": "2025-01-09T18:25:43.176Z",
"error": "Hk1PcMQT7",
"feedback": "thumbs_down",
"id": "dc8547dc-753f-4f60-885e-7fc833acc580",
"metadata": {
"code": "cBQQpCKA8j0h05n5WISGyOB",
"original_source_code": "LhyoIXbnNlyVg",
"source_ranges": [
{
"prompt": "BXwat9pXMcSXyESqWUlYV47Gp8",
"range": {
"end": {
"column": 2,
"line": 8
},
"start": {
"column": 18,
"line": 23
}
}
}
]
},
"model_version": "cuAxfBLHfPH3NeyQl",
"output_file": "GbbwJ",
"prompt": "vDjvTIMUSWBr",
"started_at": "2025-01-09T18:25:43.176Z",
"status": "uploaded",
"type": "text_to_kcl",
"updated_at": "2025-01-09T18:25:43.176Z",
"user_id": "cff7f778-000c-463f-bd3f-41e6d0bffee6"
}
],
"next_page": "zmJaaXBxS4Ja3pUaDHk"
}