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-04-01T22:13:12.331Z",
"created_at": "2025-04-01T22:13:12.331Z",
"error": "gy9Li9LtLpAOc3wXTTXlyz",
"feedback": "accepted",
"id": "01073624-1071-445a-b84e-115152f17697",
"kcl_version": "AV8e8SPV3I20Q0ZkXn7meQnUTub6M",
"metadata": {
"code": "49Yi0FK817k8dKebbqrEASi",
"original_source_code": "x1oPtiepaYRya",
"source_ranges": [
{
"file": "7DMUlkluRcgg9MPWN",
"prompt": "ITojXczKW",
"range": {
"end": {
"column": 15,
"line": 22
},
"start": {
"column": 13,
"line": 31
}
}
}
]
},
"model_version": "Tw3XvKpHqX5P6K",
"output_file": "R3oeSAo3uivFcZUadr",
"project_name": "Z1LYNDBmSkyxWp5NNJY6dxibwKCkPq",
"prompt": "5Hzy7UYxa10kT5QOFE",
"started_at": "2025-04-01T22:13:12.331Z",
"status": "uploaded",
"type": "text_to_kcl_multi_file_iteration",
"updated_at": "2025-04-01T22:13:12.331Z",
"user_id": "5bfddb1e-78f2-47cc-8336-f2dc5e9e22c4"
}
],
"next_page": "nTYqHRPt"
}