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-revisions
Authorization
X-API-KEY
<token>
In: header
Query Parameters
project_id
Project Id
Filter by project ID
project_name
Project Name
Filter by project name
prompt_id
Prompt Id
Filter by prompt definition ID
prompt_name
Prompt Name
Filter by prompt definition name
prompt_name_startswith
Prompt Name Startswith
Filter by prompt definition name prefix
revision_id
Revision Id
Filter by specific revision ID
revision
Revision
Filter by revision number
latest_revision_only
Latest Revision Only
Only return the latest revision for each prompt
Default:
false
label
Label
Filter by revisions that have this label
normalized_body_sha256
Normalized Body Sha256
Filter by SHA-256 hash prefix of prompt body with whitespace stripped from start and end
limit
Limit
Maximum number of records to return
Default:
1000
offset
Offset
Number of records to skip
Default:
0
Successful Response