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": "2024-11-22T17:02:53.430Z",
"created_at": "2024-11-22T17:02:53.430Z",
"error": "GQQiwAqCHm8DzQefo42m3nI7gySZi",
"feedback": "accepted",
"id": "1cb8732c-194e-4ef7-a781-a4422cf84e97",
"metadata": {
"code": "wgk9CeDqY0FdzXfFaj7JF0a2rSs",
"original_source_code": "Km91A7vQvuwnmCsDsmmYG9uPz7hHp",
"source_ranges": [
{
"prompt": "cX",
"range": {
"end": {
"column": 2,
"line": 28
},
"start": {
"column": 31,
"line": 31
}
}
}
]
},
"model_version": "99ZurR3zXTALmb0LPzhc",
"output_file": "beZ72hreJwWZOyewmyZQ29",
"prompt": "Nzr68Uo",
"started_at": "2024-11-22T17:02:53.430Z",
"status": "queued",
"type": "text_to_cad",
"updated_at": "2024-11-22T17:02:53.430Z",
"user_id": "2e66518c-e79e-4f53-a922-8d854d5331c1"
}
],
"next_page": "xRKDKQC97S7"
}