Integrate EstaCaido neyako maapplication
The EstaCaido API inokutendera iwe kudzora yako monitors, kuona nyaya, configure alerts uye zvimwe kubva yako yepamutemo kodhi. All API endpoints kushandisa JSON kuti chikumbiro uye kubvunza miviri.
https://www.estacaido.com/api/v1/
API tokens inogona kuita kusvika 100 zvinoda paminuutti. Kukumbira pamusoro pechinangwa ichi kuwana 429 Too Many Requests mhinduro.
Usashandisa token-based authentication kune ese API mibvunzo. Kusanganisira yako token mu Authorization header.
/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
Manage yako website 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 |
Anodarika | Izwi remonitor |
domain |
Anodarika | Domain yekuona, semuenzaniso example.com |
check_interval |
Inogona kushandiswa | Check interval in seconds, one of 30, 60, 300, 600, 900, 1800, 3600. Default: 300 |
check_type |
Inogona kushandiswa | Mumwe wezvinotevera zviwanikwa: http, https, ping. Default: 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 |
Inogona kushandiswa | Nhamba yemazuva anofanira kusanganisira. Default: 30 |
Ona downtime nyaya uye yavo nhoroondo.
/api/v1/incidents/
status |
Inogona kushandiswa | Filter by status: ongoing, resolved |
monitor |
Inogona kushandiswa | Chikamu chekuongorora |
/api/v1/incidents/{id}/
Kugadzirisa alert notifications yemonitor yako.
/api/v1/alerts/
/api/v1/alerts/
monitor |
Anodarika | Monitor ID |
alert_type |
Anodarika | Mumwe wezvinotevera zviyero: email, sms, slack, discord, webhook, pagerduty, teams |
recipients |
Anodarika | Recipient addresses or webhook URLs |
alert_on_down |
Inogona kushandiswa | Nzira yekuzivisa kana peji richibuda (default: true) |
alert_on_recovery |
Inogona kushandiswa | Nzira yekuzivisa kana nzvimbo yadzoka (yakajairika: true) |
/api/v1/alerts/{id}/
/api/v1/alerts/{id}/
Create uye kuchengetedza vanhu status mapeji.
/api/v1/status-pages/
/api/v1/status-pages/
title |
Anodarika | Chinyorwa chestatus page |
slug |
Anodarika | URL slug (e.g. my-status-page) |
description |
Inogona kushandiswa | Kutaura |
is_public |
Inogona kushandiswa | Kuita kuti vanhu vakwanise kuiwana (default: true) |
Manage timu kuwanikwa uye kubatanidzwa.
/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}'
Sign up for free and get your API token to start integrating.
Sign Up Free Get API Token