Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview

Get conversation display rules

Get a project’s ordered regex find/replace rules that clean up chat message text when traces are viewed. Display only; stored traces and judge inputs are never changed.

GET/v1/projects/{projectId}/conversation-display-rules
Authorization
AuthorizationPersonal API key · headerrequired

Your personal API key from Settings > Personal API Keys, sent as Bearer <key>.

X-Organization-IdOrganization ID · headerrequired

The organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.

Path parameters
projectIdstringrequired
Responses
200

Response for status 200

rulesobject[]required
Show properties
Array of object
patternstringrequired

JavaScript regular expression source, without slashes. Always runs with the g and m flags.

min length 1 · max length 2000
replacementstringrequired

Replacement text. Empty removes the match. Supports $1 and $<name>, and \n / \t escapes. Rendered as Markdown.

max length 2000
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/conversation-display-rules' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
  -H 'Accept: application/json'
Response
{
  "rules": [
    {
      "pattern": "string",
      "replacement": "string"
    }
  ]
}

Was this page helpful?