Passer au contenu principal
POST
/
v1
/
monitors
Créer un Moniteur
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.

Autorisations

Authorization
string
header
requis

En-tête d'authentification Bearer sous la forme Bearer , où est ton jeton d'authentification.

Corps

application/json
frequency
enum<string>
requis
Options disponibles:
hourly,
daily,
weekly
query
string

Intention de surveillance en langage naturel. Optionnel si url est fourni.

url
string<uri>

URL à surveiller. Optionnel si une requête est fournie.

email
string

Email de notification. Mutuellement exclusif avec webhook_url.

webhook_url
string<uri>

URL du webhook de notification (http/https). Mutuellement exclusif avec email.

metadata
object

Réponse

Moniteur accepté et activé.

id
string
object
string
Exemple:

"monitor"

status
string
Exemple:

"active"

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