Integrate EstaCaido with your applications
The EstaCaido API lets you manage your monitors, view incidents, configure alerts and more from your own code. All API endpoints use JSON for request and response bodies.
https://www.estacaido.com/api/v1/
Elke API-bewys kan vergoed vir 100 versoeke per minuut. Versoeke oor daardie beperking kry 'n 429 Too Many Requests antwoord.
Gebruik bewys- based geldigheidsverklaring vir alle API versoeke. Sluit jou sein in die magtigingstitel.
/api/v1/auth/token/
curl -X POST https://www.estacaido.com/api/v1/auth/token/ \
-H "Content-Type: application/json" \
-d '{"username": "your@email.com", "password": "yourpassword"}'
{
"token": "your-api-token-here"
}
Authorization: Token your-api-token-here
Bestuur pos, monitors
/api/v1/monitors/
[
{
"id": 1,
"name": "Production API",
"company": {
"id": 1,
"website": "api.example.com"
},
"check_type": "http",
"check_interval": 300,
"is_active": true,
"is_paused": false,
"last_check_at": "2024-01-15T10:30:00Z",
"created_at": "2024-01-01T00:00:00Z"
}
]
/api/v1/monitors/
name |
Benodig | Naam vir die monitor |
domain |
Benodig | Domein om te monitor, byvoorbeeld example.com |
check_interval |
Opsionele | Kyk interval in sekondes, een van 30, 60, 300, 600, 900, 1800, 3600. Verstek: 300 |
check_type |
Opsionele | Een van hierdie waardes: http, https, ping. Verstek: https |
/api/v1/monitors/{id}/
/api/v1/monitors/{id}/
/api/v1/monitors/{id}/
/api/v1/monitors/{id}/pause/
/api/v1/monitors/{id}/resume/
/api/v1/monitors/{id}/statistics/
days |
Opsionele | Aantal dae om in te sluit. Verstek: 30 |
Beskou voorvalle in die verlede en hulle geskiedenis.
/api/v1/incidents/
status |
Opsionele | Filter deur status: gaan voort, opgelos |
monitor |
Opsionele | Filter deur monitor Id |
/api/v1/incidents/{id}/
Stel waarskuwinginligting vir jou monitors op.
/api/v1/alerts/
/api/v1/alerts/
monitor |
Benodig | Monitor-ID |
alert_type |
Benodig | One of these values: email, sms, slack, discord, webhook, pagerduty, teams |
recipients |
Benodig | Ontvanger adresse of webook Urls |
alert_on_down |
Opsionele | Stel kennis wanneer die webwerf daal (verstek: waar) |
alert_on_recovery |
Opsionele | Stel kennis wanneer ruimte herstel (verstek: Waar) |
/api/v1/alerts/{id}/
/api/v1/alerts/{id}/
Skep en bestuur openbare statusbladsye.
/api/v1/status-pages/
/api/v1/status-pages/
title |
Benodig | Titel vir die statusblad |
slug |
Benodig | URL slug (bv. my-status-bladsy) |
description |
Opsionele | Beskrywing teks |
is_public |
Opsionele | Maak in die openbaar toeganklik (verstek: waar) |
Bestuur spantoegang en samewerking.
/api/v1/teams/
/api/v1/teams/
/api/v1/teams/{id}/
import requests
API_TOKEN = 'your-api-token'
BASE_URL = 'https://www.estacaido.com/api/v1'
headers = {
'Authorization': f'Token {API_TOKEN}',
'Content-Type': 'application/json'
}
# List all monitors
response = requests.get(f'{BASE_URL}/monitors/', headers=headers)
monitors = response.json()
print(monitors)
# Create a new monitor
new_monitor = {
'name': 'My Website',
'domain': 'example.com',
'check_interval': 300
}
response = requests.post(f'{BASE_URL}/monitors/', json=new_monitor, headers=headers)
print(response.json())
const API_TOKEN = 'your-api-token';
const BASE_URL = 'https://www.estacaido.com/api/v1';
const headers = {
'Authorization': `Token ${API_TOKEN}`,
'Content-Type': 'application/json'
};
// List all monitors
fetch(`${BASE_URL}/monitors/`, { headers })
.then(res => res.json())
.then(monitors => console.log(monitors));
// Create a new monitor
fetch(`${BASE_URL}/monitors/`, {
method: 'POST',
headers,
body: JSON.stringify({
name: 'My Website',
domain: 'example.com',
check_interval: 300
})
})
.then(res => res.json())
.then(data => console.log(data));
# List all monitors
curl -X GET https://www.estacaido.com/api/v1/monitors/ \
-H "Authorization: Token your-api-token"
# Create a new monitor
curl -X POST https://www.estacaido.com/api/v1/monitors/ \
-H "Authorization: Token your-api-token" \
-H "Content-Type: application/json" \
-d '{"name": "My Website", "domain": "example.com", "check_interval": 300}'
Teken gratis op en kry jou API - teken om te begin inskakel.
Registreer Gratis Kry 'nPI-toon