Integrate EstaCaido with your applications
Le EstaCaido API faodaidh tu na monarairean agad a riaghladh, tachartasan fhaicinn, rabhadh a shuidheachadh agus barrachd bhon chòd agad fhèin. Bidh na h-uile ceann-uidhe API a' cleachdadh JSON airson bodhaig iarrtais is freagairtean.
https://www.estacaido.com/api/v1/
'S urrainn do gach tocan API suas ri 10 iarrtas 100 a dhèanamh gach mionaid. Gheibh iarrtas a tha os cionn na h-ìre seo freagairt 429 Too Many Requests.
Cleachd dearbhadh a tha stèidhichte air tocan airson gach iarrtas API. Cuir an tocan agad ris a' cheann-làimh Authorization.
/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 your 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 |
Riatanas | Ainm an sgrion |
domain |
Riatanas | An làraich a thèid a mhonarachadh, mar eisimpleir example.com |
check_interval |
Roghainneil | An eadar-ama sgrùdadh is sgrùdaidh sna diogan, aon de 30, 60, 300, 600, 900, 1800, 3600. Bòrd-bùird: 300 |
check_type |
Roghainneil | Aon de na luachan seo: http, https, ping. Buidheann-glèidhidh: 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 |
Roghainneil | An àireamh làithean a thèid a chur a-steach. Bòrd-bùird: 30 |
View downtime incidents and their history.
/api/v1/incidents/
status |
Roghainneil | Sgrùdadh a rèir staid: air a dhol air adhart, air fhuasgladh |
monitor |
Roghainneil | Criathrag a rèir ID a' mhonaid |
/api/v1/incidents/{id}/
Configure alert notification for your monitors.
/api/v1/alerts/
/api/v1/alerts/
monitor |
Riatanas | Monitor ID |
alert_type |
Riatanas | Aon de na luachan seo: email, sms, slack, discord, webhook, pagerduty, teams |
recipients |
Riatanas | Seòlaidhean no URLan webhook an neach-fhaighneachd |
alert_on_down |
Roghainneil | Cuir fios ma thèid an làrach sìos (buidheann-chlàr: fìor) |
alert_on_recovery |
Roghainneil | Cuir fios air nuair a dh'fhaodas an làrach ath-shuidheachadh (bhùthan-obrach: fìor) |
/api/v1/alerts/{id}/
/api/v1/alerts/{id}/
Create and manage public status pages.
/api/v1/status-pages/
/api/v1/status-pages/
title |
Riatanas | Tiotal airson duilleag na staid |
slug |
Riatanas | Slug URL (m.e. my-status-page) |
description |
Roghainneil | Teacsa an tuairisgeul |
is_public |
Roghainneil | Dèan a h-uile duine ri làimh (bhùthan-obrach: fìor) |
Manage team access and collaboration.
/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}'
Clàraich an-asgaidh agus faigh do thocan API gus tòiseachadh air a' cho-theacsa a chur an gnìomh.
Clàraich an-asgaidh Get API Token