Overview
Create a new monitoring configuration for a customer’s website. The monitoring will continuously check the specified website for various risk factors and operational status according to the configured frequency.Request
- Method:
POST
- Path:
/monitorings
- Body: JSON object with monitoring configuration
Request Body
website
(string, required) - The URL to monitor (will be validated and sanitized)checks
(array, required) - Array of monitoring checks to perform:"non_operational_website"
- Check if website is operational"high_risk_mcc"
- Check for high-risk MCC"high_risk_diligent_classification"
- Check for high-risk classification"catalog_contain_loan_flipping_indicators"
- Check for loan flipping indicators
frequency
(string, required, case-insensitive) - How often to run checks:"weekly"
- Every 7 days"every_2_weeks"
- Every 14 days (default)"every_3_weeks"
- Every 21 days"every_4_weeks"
- Every 28 days
expires_at
(ISO8601 string, optional) - When monitoring expires (defaults to 6 months from creation)- Must be a future date
- Must be at least N days ahead where N equals the frequency period
run_now
(boolean, optional) - Execute immediately after creation (defaults to true)external_id
(string, optional) - External ID for the monitoringskip_duplicate
(boolean, optional) - If an existing, active monitoring exist with the same site skip don’t fail
Example Request
Success Response
- Status: 201 Created
Error Handling
- 400 Bad Request
- Schema validation errors:
- Monitor already exists:
- URL validation failed:
- Schema validation errors:
- 401 Unauthorized
- Missing or invalid customer authentication
- 500 Internal Server Error
- Unexpected server error during creation or execution
Validation Rules
- Website URL: Must be a valid, allowed URL that passes security validation
- Unique Checks: Each monitoring must have unique check names (no duplicates)
- Frequency: Case-insensitive input, normalized to lowercase
- Expiration Date: Must be future date, at least N days ahead based on frequency
- Duplicate Prevention: Cannot create monitoring for website that already exists for this customer
Notes
- If
run_now
is true, the monitoring will be queued for immediate execution via SQS - Frequency input is case-insensitive and normalized to lowercase
- All URLs are validated and sanitized for security before storage
- Default expiration is 6 months from creation if not specified
Authorizations
Body
The website URL to monitor
"https://example.com"
Array of monitoring checks to perform
1
[
"non_operational_website",
"high_risk_diligent_classification"
]
How often to run the monitoring checks
weekly
, every_2_weeks
, every_3_weeks
, every_4_weeks
"weekly"
Whether to execute the monitoring immediately after creation
Optional expiration date for the monitoring (defaults to 6 months from creation)
"2024-12-31T23:59:59.000Z"
If an existing, active monitoring exist with the same site skip don't fail
false
Response
Created
Unique monitoring identifier
"d6e3b214-30b1-4401-a1b8-a1bd3c6a84e4"
The monitored website URL
"https://example.com"
Customer identifier
Active monitoring checks
Monitoring frequency
weekly
, every_2_weeks
, every_3_weeks
, every_4_weeks
Whether monitoring is active
Current execution state
IDLE
, RUNNING
, FAILED
Next scheduled execution time
Monitoring expiration date
Timestamp of last execution, null if never executed
Creation timestamp
Last update timestamp
Results from the latest monitoring execution
External identifier for this monitoring