List prompts

Retrieve prompts with pagination, sorting, and POST-based filters. Common filter fields include prompt_id, prompt_slug, name, description, starred, tags, current_version__updated_at, and is_deleted.

Authentication

AuthorizationBearer

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Query parameters

pageintegerOptionalDefaults to 1
Page number.
page_sizeintegerOptional<=100Defaults to 25
Number of prompts per page. Maximum is 100.
sort_byenumOptionalDefaults to -id

Sort field. Prefix with - for descending. Common values are -id and -current_version__updated_at.

Allowed values:

Request

This endpoint expects an object.
filtersobjectOptional

Prompt filters. See Filters API Reference for operator syntax.

Response

Paginated list of prompts.
countinteger
Total number of matching prompts.
nextstring or null
Next page URL.
previousstring or null
Previous page URL.
resultslist of objects

Errors

401
Unauthorized Error