Jwt Prompt Versions List
Unified view for prompt versions list/create operations.
Supports both JWT (dashboard) and API key (public API) authentication.
Uses NestedResourceMixin for parent-aware access control:
- READ child = READ parent → superadmin can view any
- WRITE child = WRITE parent → requires org match (for JWT auth)
JWT auth: uses prompt pk from URL kwargs, exact matching
API key auth: uses prompt_id from URL kwargs, startswith matching
Authentication
AuthorizationBearer
JWT access token or Respan API key
Query parameters
page
A page number within the paginated result set.
page_size
Number of results to return per page.
Response
count
results
next
previous
total_count
current_filters
Pydantic model for FilterParamDict. A dictionary that maps metric names to their filter parameters.
Each key is a metric name (str), and each value can be:
- A single MetricFilterParamPydantic (one condition)
- A List[MetricFilterParamPydantic] (multiple conditions for same metric)
- A FilterBundlePydantic (nested filter bundle with connector)
Note: Uses extra=“allow” for dynamic metric name fields. The pydantic_extra annotation tells Pydantic what types to expect for extra fields, and generates typed additionalProperties in JSON Schema.
filters_data