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-14T18:19:56.840Z",
"created_at": "2025-01-14T18:19:56.840Z",
"error": "p0roHW2asg5qsJTsBgjZVMQ",
"feedback": "rejected",
"id": "6be1a6f5-6b20-4fdc-adeb-b5e86c5c92b3",
"metadata": {
"code": "eDIIK3KiCFmawNRnZmcXtk",
"original_source_code": "pNRgJ6MPUKI6E1D",
"source_ranges": [
{
"prompt": "fcoljmh",
"range": {
"end": {
"column": 4,
"line": 16
},
"start": {
"column": 24,
"line": 13
}
}
}
]
},
"model_version": "lgZ5GLzldX86dGjP4V8U7k0ttXyrb",
"output_file": "oBj",
"prompt": "2MMEFwPn7hGOaISScgXTdtIo",
"started_at": "2025-01-14T18:19:56.840Z",
"status": "completed",
"type": "text_to_cad",
"updated_at": "2025-01-14T18:19:56.840Z",
"user_id": "72608aad-9c22-4b4b-a7b6-a8f7c0376b08"
}
],
"next_page": "ah"
}