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.text_to_kcl_multi_file_iteration
: Text to KCL iteration with multiple files.
get
/ml-prompts$ curl "https://api.zoo.dev/ml-prompts" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"items": [
{
"completed_at": "2025-03-12T01:36:12.789Z",
"created_at": "2025-03-12T01:36:12.789Z",
"error": "KyulGGN41Z6h3hNwoGjWmhjCrB3SB",
"feedback": "rejected",
"id": "2f81a3c8-dcde-4eb9-acf8-a842643fec94",
"kcl_version": "frgkzsdpRNnxMSBMQ9RAkXJ",
"metadata": {
"code": "q1SAIa5ShL7cGrfWF7tjb0P0D2gh",
"original_source_code": "Gxq6ZIsHEDBy",
"source_ranges": [
{
"file": "g6e322x6crMW",
"prompt": "Adcr",
"range": {
"end": {
"column": 26,
"line": 13
},
"start": {
"column": 12,
"line": 18
}
}
}
]
},
"model_version": "eLYBtNIoLNHRuxu",
"output_file": "lorillJ5aowy1l4gWeQZ",
"project_name": "tJr2IiLE1aeRFas5q",
"prompt": "qaT7WJGjsrK8M5G8zq",
"started_at": "2025-03-12T01:36:12.789Z",
"status": "uploaded",
"type": "text_to_kcl_iteration",
"updated_at": "2025-03-12T01:36:12.789Z",
"user_id": "25890241-e3ee-4c54-a1cd-3b772518f79c"
}
],
"next_page": "9EgTT1CLyIxY6D4zi59xa03l3BGgl7"
}