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-10T17:00:29.554Z",
"created_at": "2025-01-10T17:00:29.554Z",
"error": "44",
"feedback": "rejected",
"id": "a227a241-53a0-4e07-80dd-001b9b9528d9",
"metadata": {
"code": "5wBXQDHBX",
"original_source_code": "9Gvk5XEfcn",
"source_ranges": [
{
"prompt": "zMPamtCWatDRqWLgwaBH7gG3qr2y",
"range": {
"end": {
"column": 21,
"line": 15
},
"start": {
"column": 8,
"line": 25
}
}
}
]
},
"model_version": "aVswRB4JkNE9dNzO",
"output_file": "j45ft7RV1ceK2kxODfjESen7fv9a3u",
"prompt": "KsDlBv7mKfyhUlkwJLL2Jl1",
"started_at": "2025-01-10T17:00:29.554Z",
"status": "in_progress",
"type": "text_to_kcl",
"updated_at": "2025-01-10T17:00:29.554Z",
"user_id": "ca90bf32-2748-4424-984e-a6936555de2e"
}
],
"next_page": "hK4BFVydiaPUNUpEEadC5Mq0wYxgp"
}