API → AIList all AI prompts
hidden

Parameters

Name

Type

Req.

  • limit

    integer
    optional
  • page_token

    string
    optional
  • sort_by

    string
    required
    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

    object
    optional
    Object Properties
    • items

      array
      optional
      Array of
      • completed_at

        string / ISO-8601
        optional
      • created_at

        string / ISO-8601
        optional
      • error

        string
        optional
      • feedback

        string
        optional
        Possible values
        • thumbs_up:  Thumbs up.
        • thumbs_down:  Thumbs down.
      • id

        string / UUID
        optional
      • metadata

        optional
      • model_version

        string
        optional
      • output_file

        string
        optional
      • prompt

        string
        optional
      • started_at

        string / ISO-8601
        optional
      • status

        string
        optional
        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.
      • type

        string
        optional
        Possible values
        • text_to_cad:  Text to CAD.
      • updated_at

        string / ISO-8601
        optional
      • user_id

        string / UUID
        optional
    • next_page

      string
      optional
get
/ai-prompts
$ curl "https://api.zoo.dev/ai-prompts" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "completed_at": "2024-05-07T19:29:41.270Z",
      "created_at": "2024-05-07T19:29:41.270Z",
      "error": "284FFoApayzxcrTICSoAtHYkV",
      "feedback": "thumbs_up",
      "id": "77172e78-4fd2-41af-b253-2939a8130c77",
      "metadata": "{}",
      "model_version": "qXXXWBY2MDq3QsC",
      "output_file": "cd",
      "prompt": "QSUo4eZzbrESXk9rQQPoLWjfmXVR",
      "started_at": "2024-05-07T19:29:41.271Z",
      "status": "uploaded",
      "type": "text_to_cad",
      "updated_at": "2024-05-07T19:29:41.271Z",
      "user_id": "5bec6542-8745-4aa3-9304-b3d3deaaf5e9"
    }
  ],
  "next_page": "EV9TmvEeaZ3qyq58bN"
}