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-04-18T22:03:24.243Z",
      "created_at": "2024-04-18T22:03:24.243Z",
      "error": "s",
      "feedback": "thumbs_up",
      "id": "721fe073-2731-4ce9-8853-5295496bd3fd",
      "metadata": "{}",
      "model_version": "H0woEwNF",
      "output_file": "YwyTWG6rIZxXgAU78I2j6rG64hJS5",
      "prompt": "fAqBrHF6fAfCg",
      "started_at": "2024-04-18T22:03:24.244Z",
      "status": "completed",
      "type": "text_to_cad",
      "updated_at": "2024-04-18T22:03:24.244Z",
      "user_id": "a5a414d3-9a1a-4913-a92e-aada10708512"
    }
  ],
  "next_page": "u6ru6hhv4JYSKahPWRFtB"
}