Patronus AI APIPrompts
List Prompt Revisions
List prompt revisions with optional filtering.
Returns prompt revisions matching the criteria. If project_name is provided, it resolves to project_id. If no filters are provided, returns all prompt revisions for the account.
GET
/
v1/prompt-revisionsAuthorization
X-API-KEY<token>
In: header
Query Parameters
project_idProject Id
Filter by project ID
project_nameProject Name
Filter by project name
prompt_idPrompt Id
Filter by prompt definition ID
prompt_namePrompt Name
Filter by prompt definition name
prompt_name_startswithPrompt Name Startswith
Filter by prompt definition name prefix
revision_idRevision Id
Filter by specific revision ID
revisionRevision
Filter by revision number
latest_revision_onlyLatest Revision Only
Only return the latest revision for each prompt
Default:
falselabelLabel
Filter by revisions that have this label
normalized_body_sha256Normalized Body Sha256
Filter by SHA-256 hash prefix of prompt body with whitespace stripped from start and end
limitLimit
Maximum number of records to return
Default:
1000offsetOffset
Number of records to skip
Default:
0Successful Response
