beta.prompts

ListPrompts

get/v2/prompts

Request

Query parameters

pageSizeinteger
pageTokenstring
aliasstring
fieldsstring[]
sort.field'list_sort_field_unspecified' | 'list_sort_field_created_at' | 'list_sort_field_last_modified_at' | 'list_sort_field_name' | 'list_sort_field_title'

Defaults to created_at when omitted.

sort.direction'list_sort_direction_unspecified' | 'list_sort_direction_asc' | 'list_sort_direction_desc'

Defaults to descending for timestamp fields and ascending for text fields.

sort_bystring

REST-friendly alias for sort.field. Supported values: created_at, last_modified_at, name, title.

sort_directionstring

REST-friendly alias for sort.direction. Supported values: asc, desc.

Response

Success

nextPageTokenstring

Example response

{
  "data": [
    {
      "version": 1,
      "createdAt": "1s",
      "updatedAt": "1s",
      "latestVersion": 1,
      "versionCreatedAt": "1s"
    }
  ]
}

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the new optional query request parameter sort.direction

    • info

      added the new optional query request parameter sort.field

    • info

      added the new optional query request parameter sort_by

    • info

      added the new optional query request parameter sort_direction