Guardrails
Preview

List a guardrail's versions

The saved versions, newest first: the editor's History.

GET
/guardrails/{guardrailId}/versions
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

guardrailId*string
Formatuuid

Response Body

The versions.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/guardrails/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions'
Example Response
{  "items": [    {      "version": 1,      "summary": "string",      "mode": "enforce",      "createdBy": {        "id": "string",        "name": "string"      },      "createdAt": "2019-08-24T14:15:22Z"    }  ]}