List prompts | Hume API
Fetches a paginated list of Prompts.
See our prompting guide for tips on crafting your system prompt.
Authentication
X-Hume-Api-Keystring
API Key authentication via header
Query parameters
page_number
integerOptional Defaults to0- Specifies the page number to retrieve, enabling pagination.
- This parameter uses zero-based indexing. For example, setting
page_numberto0retrieves the first page of results (items0-9ifpage_sizeis10), settingpage_numberto1retrieves the second page (items10-19), and so on. Defaults to0, which retrieves the first page.
page_size
integerOptional- Specifies the maximum number of results to include per page, enabling pagination. The value must be between
1and100, inclusive. - For example, if
page_sizeis set to10, each page will include up to10items. Defaults to10.
- Specifies the maximum number of results to include per page, enabling pagination. The value must be between
restrict_to_most_recent
booleanOptional- By default,
restrict_to_most_recentis set totrue, returning only the latest version of each prompt. To include all versions of each prompt in the list, setrestrict_to_most_recenttofalse.
- By default,
name
stringOptional- Filter to only include prompts with name.
Response
Success
page_number
integer- The page number of the returned list.
- This value corresponds to the
page_numberparameter specified in the request. Pagination uses zero-based indexing.
page_size
integer- The maximum number of items returned per page.
- This value corresponds to the
page_sizeparameter specified in the request.
prompts_page
list of objects- List of prompts returned for the specified
page_numberandpage_size.
- List of prompts returned for the specified
total_pages
integer- The total number of pages in the collection.