List a prompt's audit log
/v1/prompts/{slug}/audit-logList a prompt's audit log.
Returns the changes made to the prompt (creation, versions saved and published, labels, rollbacks, test runs), newest first. Requires membership of the prompt's workspace (organization admins have it). 404 when the prompt does not exist.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Path parameters
slugstringrequiredthe prompt's slug
Query parameters
organizationstringrequiredslug of the organization that owns it
pageinteger<int32>page number, from 1. Default 1
page_sizeinteger<int32>entries per page. Default 50, at most 200
Responses
totalinteger<int64>Number of entries in the whole log.
pageinteger<int32>The page number, from 1.
page_sizeinteger<int32>Entries per page.
entriesobject[]The entries on this page.
Child attributes
idstringThe entry's unique id (UUID).
prompt_idstringId (UUID) of the prompt.
actionenum<string>What happened:
CREATE(prompt created),VERSION_SAVE(version saved),PUBLISH(version published),LABEL_ADD(label set),LABEL_REMOVE(label removed),ROLLBACK(an earlier version saved again as a new version),DELETE(prompt deleted) orTEST_RUN(test cases run).One of
"CREATE","VERSION_SAVE","PUBLISH","LABEL_ADD","LABEL_REMOVE","ROLLBACK","DELETE","TEST_RUN"actor_idstringIdentifier of the caller (user or API key) that made the change, or
unknownwhen the caller could not be identified.detailmap<string, object>Details of the change, by action: for example
slugandname,version_number,labels,label,from_versionandto_version, orpass_countandfail_count.created_atstring<date-time>When the change was made (ISO 8601).