Skip to contentSkip to page list

Docs

List Monitors

List all online evaluation monitors for the project

GET/api/v1/monitors
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/monitors"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.get(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

[  {    "id": "string",    "name": "string",    "slug": "string",    "checkType": "string",    "enabled": false,    "executionMode": "ON_MESSAGE",    "sample": 0,    "level": "string",    "evaluatorId": "string",    "preconditions": null,    "parameters": null,    "mappings": null,    "threadIdleTimeout": 0,    "createdAt": "string",    "updatedAt": "string",    "autoPausedAt": "string",    "autoPausedReason": "string",    "evaluatorLabel": "string",    "createdById": "string",    "updatedById": "string",    "platformUrl": "string"  }]
api-reference/monitors/list-monitors

Authorization

X-Auth-Tokenstringheaderrequired

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Responses

200

Success

application/json

object[]
idstringrequired
namestringrequired
slugstringrequired
checkTypestringrequired
enabledbooleanrequired
executionModestringrequired
One of"ON_MESSAGE""AS_GUARDRAIL""MANUALLY"
samplenumberrequired
levelstringrequired
evaluatorIdstring | nullrequired
preconditionsanyrequired
parametersanyrequired
mappingsany | nullrequired
threadIdleTimeoutnumber | nullrequired
createdAtstringrequired
updatedAtstringrequired
autoPausedAtstring | nullrequired

When the monitor paused itself because its evaluations mostly failed.

autoPausedReasonstring | nullrequired

Why the monitor paused itself.

evaluatorLabelstring | nullrequired

The evaluator deploy label the monitor runs; null runs the latest version.

createdByIdstring | nullrequired

The user who created the monitor, when recorded.

updatedByIdstring | nullrequired

The user who changed the monitor last.

platformUrlstring (uri)required

Documentation