SnozeDevelopers
API referenceDatabases

List a database's validation rules

Returns the rules that run on every record write, in evaluation order, each with its condition formula, message, severity and the field its message is anchored to. Requires the `databases:read` permission.

GET
/v1/workspaces/{workspaceId}/databases/{databaseId}/validation-rules
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
databaseId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/databases/string/validation-rules"
{  "data": [    {      "id": "string",      "workspaceId": "string",      "databaseId": "string",      "label": "string",      "condition": "string",      "message": "string",      "severity": "block",      "fieldKey": "string",      "enabled": true,      "order": 0,      "createdAt": "string",      "updatedAt": "string"    }  ]}