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-07-25T00:19:55.402Z",
      "created_at": "2024-07-25T00:19:55.402Z",
      "error": "y60tU4CS8",
      "feedback": "thumbs_up",
      "id": "60bb4353-f88b-472a-b8aa-be729ceea4d4",
      "metadata": "{}",
      "model_version": "gk5BYXKhhRWA1Tt69F5z8Ij",
      "output_file": "FWRFIAcm1yxP",
      "prompt": "7FKN0hIAutJs5P",
      "started_at": "2024-07-25T00:19:55.403Z",
      "status": "completed",
      "type": "text_to_cad",
      "updated_at": "2024-07-25T00:19:55.403Z",
      "user_id": "e6d06543-ce99-4a4e-8162-7bd448c91a60"
    }
  ],
  "next_page": "BkeXJdafRi1k"
}