Create Monitor
Watch any data endpoint on a schedule and email up to three addresses what is new. The monitor runs once right away to record what already matches (the baseline) and sends a welcome email; from then on every run reports only what appeared since the last one: on a search, its new results; on a lookup of one record, the values that changed (each with what it was before) and any new item in its lists, such as a new action on a case. With schedule.cadence: "source" (the default) each run starts after the endpoint's own refresh has completed, so a daily source is checked once a day, right after new data lands; an endpoint served live has no refresh to follow and runs daily or weekly instead. Each run spends the same credits as one request to the endpoint. An organization may have up to 20 monitors.
Request
- Base URL: https://api.croma.run
- URL: https://api.croma.run/monitors
- Auth: HTTP bearer
Headers
Optional client-chosen key for this request (any string up to 255 characters, e.g. a UUID). Every Croma operation is an idempotent lookup: repeating a request with the same body returns the same result and creates nothing, so retrying after a timeout or network failure is always safe. The key is echoed back in the Idempotency-Key response header so you can correlate a retry with its first attempt. Each attempt that reaches the API counts against the rate limit.
Request body
Example request
{
"name": "Contrato AD9-111",
"endpoint": "/co/anm/notices-search/v1",
"query": {
"title_number": "AD9-111"
},
"schedule": {
"at": "08:00",
"timezone": "America/Bogota"
}
}Response
The monitor, with its compiled schedule and next run.
Example response
{
"data": {
"id": "mon_5f1c2c0a-9d1e-4a3b-8c7d-1e2f3a4b5c6d",
"endpoint": {
"id": "anm-notices-search",
"path": "/co/anm/notices-search/v1",
"source": "ANM"
},
"schedule": {
"cron": "30 7 * * *"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.