The Create Monitor endpoint registers a new HTTP endpoint with OpsMind so it can be tracked, checked on a recurring schedule, and included in status reports. Once created, the monitor is immediately available for real-time health checks and historical log collection. BothDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LENINMORENO13/OpsMind/llms.txt
Use this file to discover all available pages before exploring further.
name and url are required — OpsMind will reject requests that omit either field or attempt to register a URL that is already in use by another monitor.
Endpoint
All requests must include a valid JWT in the
Authorization header. Missing
or expired tokens result in a 401 Unauthorized response before any
validation is performed.Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <token> | ✅ Yes |
Content-Type | application/json | ✅ Yes |
Body Parameters
A human-readable label for the monitor. This value is used as the lookup key
by
GET /api/v1/monitors/status/:site, which performs a case-insensitive
name match — so choose a name that uniquely identifies the service.The full HTTP/HTTPS URL of the endpoint to monitor. Must be unique across all
monitors in OpsMind. Attempting to register a URL that already exists returns
a
400 error with the conflicting monitor object included in the response.Curl Example
Response
201 — Created
Returns a JSON envelope with the newly created Monitor object insidedata.
A newly created monitor always starts with
lastStatus: "PENDING" and
isActive: true. The checkInterval defaults to 300 seconds (five
minutes) and can be managed directly in the database or via future update
endpoints.Error Responses
400 — Missing Required Fields
Returned whenname or url (or both) are absent from the request body.
400 — Duplicate URL
Returned when the submittedurl is already registered on another monitor. The conflicting monitor object is included in the response to help with deduplication.
401 — Unauthorized
Returned when theAuthorization header is missing, malformed, or the token has expired.