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-19T16:11:53.168Z",
"created_at": "2024-09-19T16:11:53.168Z",
"error": "T4Kbwh",
"feedback": "accepted",
"id": "c5e89d6c-9f7b-404c-ac25-f179f2b4cde0",
"metadata": {
"code": "saBt3Y2YHD8th2X0SmB3CLhFndp",
"original_source_code": "eD3a5L18YzZZKz4v34N1V",
"source_ranges": [
{
"prompt": "wgfwI",
"range": {
"end": {
"column": 14,
"line": 19
},
"start": {
"column": 16,
"line": 31
}
}
}
]
},
"model_version": "47KsLhO",
"output_file": "KYUQjOjyRR",
"prompt": "7i07dpix22PMR",
"started_at": "2024-09-19T16:11:53.168Z",
"status": "uploaded",
"type": "text_to_cad",
"updated_at": "2024-09-19T16:11:53.168Z",
"user_id": "f1e98549-aab9-4220-b5a1-c5ede36aa3f7"
}
],
"next_page": "167wUDE0"
}