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-09-18T17:46:45.366Z",
"created_at": "2024-09-18T17:46:45.366Z",
"error": "DsBwRRheoY",
"feedback": "rejected",
"id": "b3cdd2ce-d78f-440d-b596-2ea40d276f6e",
"metadata": {
"code": "AqQAMu",
"original_source_code": "WKsNU0b4AAsZ",
"source_ranges": [
{
"prompt": "JlnxEVn1wH6XrLR11JRuTDu",
"range": {
"end": {
"column": 7,
"line": 21
},
"start": {
"column": 29,
"line": 26
}
}
}
]
},
"model_version": "jQ7l0811QsdjsAvBkdfOwlB",
"output_file": "Y5QaClJSDCWeWfbQMUake",
"prompt": "kcktKYsxsP780HPsmada",
"started_at": "2024-09-18T17:46:45.366Z",
"status": "queued",
"type": "text_to_cad",
"updated_at": "2024-09-18T17:46:45.366Z",
"user_id": "3280271c-1231-450f-a8f9-38366b16750f"
}
],
"next_page": "FFBEE2KrdRzHHJ3"
}