Skip to main content
POST
Python

Authorizations

X-Auth-Token
string
header
required

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.

Body

application/json
name
string
required
Minimum string length: 1
checkType
string
required
Minimum string length: 1
executionMode
enum<string>
default:ON_MESSAGE
Available options:
ON_MESSAGE,
AS_GUARDRAIL,
MANUALLY
preconditions
any[]
parameters
object
mappings
object | null
sample
number
default:1
Required range: 0 <= x <= 1
evaluatorId
string
Minimum string length: 1
level
enum<string>
default:trace
Available options:
trace,
thread
threadIdleTimeout
integer | null
Required range: 0 < x <= 9007199254740991
evaluatorLabel
string | null

Run the evaluator at this deploy label, such as production; null runs the latest.

Required string length: 1 - 64

Response

201 - application/json

Success

id
string
required
name
string
required
slug
string
required
checkType
string
required
enabled
boolean
required
executionMode
enum<string>
required
Available options:
ON_MESSAGE,
AS_GUARDRAIL,
MANUALLY
sample
number
required
level
string
required
evaluatorId
string | null
required
preconditions
any
required
parameters
any
required
mappings
unknown
required
threadIdleTimeout
number | null
required
createdAt
string
required
updatedAt
string
required
autoPausedAt
string | null
required

When the monitor paused itself because its evaluations mostly failed.

autoPausedReason
string | null
required

Why the monitor paused itself.

evaluatorLabel
string | null
required

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

createdById
string | null
required

The user who created the monitor, when recorded.

updatedById
string | null
required

The user who changed the monitor last.

platformUrl
string<uri>
required
Last modified on October 12, 2026