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, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.

OR
AuthorizationBearer

Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.

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.
countintegerOptional
Total number of matching prompts.
nextstring or nullOptional
Next page URL.
previousstring or nullOptional
Previous page URL.
resultslist of objectsOptional

Errors

401
Unauthorized Error