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-02-21T16:37:01.768Z",
"created_at": "2025-02-21T16:37:01.768Z",
"error": "fVa",
"feedback": "rejected",
"id": "e50f3890-bd77-4a99-a509-2551d6d5edd1",
"kcl_version": "wCRvMdinpYb8AZy1",
"metadata": {
"code": "oNQ",
"original_source_code": "q9FkaJxMLbUoY4BMN",
"source_ranges": [
{
"file": "28tw2z0",
"prompt": "8JW",
"range": {
"end": {
"column": 23,
"line": 17
},
"start": {
"column": 4,
"line": 12
}
}
}
]
},
"model_version": "PfZSikbNs6PsODYOpBHJyvQ",
"output_file": "6KjYVS",
"project_name": "twxgRbB6bSmyzxmFaJ8UR",
"prompt": "GE3kURFGo4SE2lyOVMHXfqULdmHX",
"started_at": "2025-02-21T16:37:01.768Z",
"status": "completed",
"type": "text_to_cad",
"updated_at": "2025-02-21T16:37:01.768Z",
"user_id": "23b01ebe-781c-4c1b-9b6e-5f126592d29f"
}
],
"next_page": "2OZas2cds"
}