GET
/
guardrails
curl --request GET \
  --url https://use.hoop.dev/api/guardrails
[
  {
    "created_at": "2024-07-25T15:56:35.317601Z",
    "description": "description about this rule",
    "id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
    "input": {},
    "name": "my-strict-rule",
    "output": {},
    "updated_at": "2024-07-25T15:56:35.317601Z"
  }
]

Response

200
application/json
OK
created_at
string

The time the resource was created

Example:

"2024-07-25T15:56:35.317601Z"

description
string

The rule description

Example:

"description about this rule"

id
string

The resource identifier

Example:

"15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7"

input
object

The input rule

	{
		"name": "deny-select",
		"description": "<optional-description>",
		"input": {
			"rules": [
				{"type": "deny_words_list", "words": ["SELECT"], "pattern_regex": "", "name": "<optional-name>"}
			]
		},
		"output": {
			"rules": [
				{"type": "pattern_match", "words": [], "pattern_regex": "[A-Z0-9]+"}
			]
		}
	}
name
string

Unique name for the rule

Example:

"my-strict-rule"

output
object

The output rule

	{
		"name": "deny-select",
		"description": "<optional-description>",
		"input": {
			"rules": [
				{"type": "deny_words_list", "words": ["SELECT"], "pattern_regex": "", "name": "<optional-name>"}
			]
		},
		"output": {
			"rules": [
				{"type": "pattern_match", "words": [], "pattern_regex": "[A-Z0-9]+"}
			]
		}
	}
updated_at
string

The time the resource was updated

Example:

"2024-07-25T15:56:35.317601Z"