Zum Hauptinhalt springen
POST
/
v1
/
monitors
Monitor erstellen
curl --request POST \
  --url https://api.olostep.com/v1/monitors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "frequency": "hourly",
  "query": "<string>",
  "url": "<string>",
  "email": "<string>",
  "webhook_url": "<string>",
  "metadata": {}
}
'
{
  "id": "<string>",
  "object": "monitor",
  "status": "active",
  "agent_id": "<string>",
  "fda_id": "<string>",
  "schedule_id": "<string>",
  "query": "<string>",
  "url": "<string>",
  "frequency": "hourly",
  "cron_expression": "<string>",
  "notification_channel": "email",
  "notification_target": "<string>",
  "metadata": {},
  "created": 123,
  "updated": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.olostep.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorisierungen

Authorization
string
header
erforderlich

Bearer-Authentifizierungsheader in der Form Bearer , wobei dein Authentifizierungstoken ist.

Body

application/json
frequency
enum<string>
erforderlich
Verfügbare Optionen:
hourly,
daily,
weekly
query
string

Überwachungsabsicht in natürlicher Sprache. Optional, wenn url angegeben ist.

url
string<uri>

Zu überwachende URL. Optional, wenn query angegeben ist.

email
string

Benachrichtigungs-E-Mail. Gegenseitig ausschließend mit webhook_url.

webhook_url
string<uri>

Benachrichtigungs-Webhook-URL (http/https). Gegenseitig ausschließend mit E-Mail.

metadata
object

Antwort

Monitor akzeptiert und aktiviert.

id
string
object
string
Beispiel:

"monitor"

status
string
Beispiel:

"active"

agent_id
string
fda_id
string
schedule_id
string
query
string
url
string | null
frequency
enum<string>
Verfügbare Optionen:
hourly,
daily,
weekly
cron_expression
string
notification_channel
enum<string>
Verfügbare Optionen:
email,
webhook
notification_target
string
metadata
object
created
integer
updated
integer