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-07T17:16:35.828Z",
"created_at": "2025-01-07T17:16:35.828Z",
"error": "ATsyzTRgT0MgJtj7JIeauW5",
"feedback": "thumbs_up",
"id": "fa3b1b57-8f94-41c2-b3a6-4c669d63e30f",
"metadata": {
"code": "YzIszSJYkpQADhm9X8CenrkMnro",
"original_source_code": "h1r05",
"source_ranges": [
{
"prompt": "wnnxJGGJaIIMfRow6Z6PFBwQ",
"range": {
"end": {
"column": 2,
"line": 18
},
"start": {
"column": 10,
"line": 2
}
}
}
]
},
"model_version": "AnprbEIVH0psexMp8O",
"output_file": "3Du1qz4xBgOGmV7pMAlO",
"prompt": "UIpGk5FJCx",
"started_at": "2025-01-07T17:16:35.828Z",
"status": "completed",
"type": "text_to_cad",
"updated_at": "2025-01-07T17:16:35.828Z",
"user_id": "15cebb8c-1f79-4d5b-b253-297da8c4b0d8"
}
],
"next_page": "NtD"
}