stackwatch
Features Pricing Docs Contact Us
Login Get Started
# docs Getting started Monitors Page Speed Notifications Status pages Incidents Billing API
API Reference
API Reference

Integrate StackWatch with your applications using our REST API.

Getting Started with the API

The StackWatch API provides programmatic access to all monitoring features. Use it to create monitors, retrieve status data, manage incidents, and integrate with your existing tools.

API Authentication

All API requests require authentication using API tokens. Generate tokens in your account settings and include them in the Authorization header.

Generate API Token

1

Go to Settings → API Tokens in your dashboard

2

Click "Create Token" and give it a descriptive name

3

Copy the token immediately - it will only be shown once

Authorization: Bearer your-api-token-here
API Endpoints
Monitors Endpoints
GET /api/monitors

Retrieve a list of all monitors in your account.

POST /api/monitors

Create a new monitor with specified configuration.

GET /api/monitors/{id}

Get detailed information about a specific monitor.

PUT /api/monitors/{id}

Update an existing monitor's configuration.

DELETE /api/monitors/{id}

Delete a monitor and all its associated data.

Status Endpoints
GET /api/status

Get overall system status and summary statistics.

GET /api/status/{monitor_id}

Get current status and recent history for a specific monitor.

Code Examples
cURL Examples
# Get all monitors
curl -X GET "https://your-domain.com/api/monitors" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

# Create a new monitor
curl -X POST "https://your-domain.com/api/monitors" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "name": "My Website",
    "url": "https://example.com",
    "type": "http",
    "interval": 300
  }'
JavaScript Examples
// Fetch monitors using JavaScript
const response = await fetch('https://your-domain.com/api/monitors', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json'
  }
});

const monitors = await response.json();
console.log(monitors);

// Create a monitor using JavaScript
const newMonitor = await fetch('https://your-domain.com/api/monitors', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json',
    'Accept': 'application/json'
  },
  body: JSON.stringify({
    name: 'My API',
    url: 'https://api.example.com/health',
    type: 'http',
    interval: 60
  })
});

const monitor = await newMonitor.json();
Python Examples
import requests

# Setup headers for authentication
headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json'
}

# Get all monitors
response = requests.get('https://your-domain.com/api/monitors', headers=headers)
monitors = response.json()

# Create a new monitor
monitor_data = {
    'name': 'Database Server',
    'url': 'https://db.example.com',
    'type': 'ping',
    'interval': 120
}

response = requests.post(
    'https://your-domain.com/api/monitors',
    headers={**headers, 'Content-Type': 'application/json'},
    json=monitor_data
)

new_monitor = response.json()
Response Format

All API responses follow a consistent JSON format with data and metadata sections:

{
  "data": {
    "id": 1,
    "name": "My Website",
    "url": "https://example.com",
    "type": "http",
    "status": "up",
    "interval": 300,
    "response_time": 245,
    "uptime_percentage": 99.95,
    "created_at": "2024-01-01T00:00:00Z",
    "updated_at": "2024-01-01T12:00:00Z"
  },
  "meta": {
    "timestamp": "2024-01-01T12:00:00Z",
    "version": "1.0"
  }
}
Rate Limiting

API requests are rate limited to ensure fair usage. Current limits are 1000 requests per hour per API token.

Rate Limit Headers
X-RateLimit-Limit: Total requests allowed per hour
X-RateLimit-Remaining: Requests remaining in current window
X-RateLimit-Reset: Time when the rate limit resets
What's Next?
Start Building

Begin integrating StackWatch into your applications.

Learn More
Explore More

Browse all documentation sections for comprehensive guides.

Learn More
Privacy Policy

Information about how StackWatch processes your personal data

Last updated

July 24, 2026

Introduction

This privacy policy is intended to provide information about how and why StackWatch collects and processes personal data.

Personal data is information or assessment that can be directly or indirectly linked to an individual. This may include name, address, phone number, email address, date of birth, IP address.

StackWatch is the data controller for information collected and processed.

For questions about our processing of your personal data, please contact us at: support@stackwatch.no

Data Collection and Use

We collect and use your personal data depending on how we interact with you. We do not sell your personal data to third parties, nor do we exchange or forward your information to third parties.

Purpose of Data Processing

Registration

Via our registration form

Monitoring Data

Website and server monitoring

Login

Secure access to the service

Personal Data We Collect
  • First and last name

  • Email address

  • Monitor URLs and server information

  • Usage statistics and subscription data

Your Rights

You have the right to request access, correction, or deletion of the personal data we process about you. You can also withdraw your consent for processing of personal data with us.

Access

View what data we have about you

Correction

Correct incorrect information

Deletion

Have your data deleted

Changes

If we make changes to this privacy policy, we will post the updated policy on our website with an updated date.

Cookies

A cookie is a small text file stored on your computer that allows us to track your activity on our website. You can choose whether to accept the use of cookies in your browser settings.

Important: StackWatch uses cookies to remember your settings and improve user experience.

Data Processors

We do not share your personal data with third parties without your consent.

Terms of Service

Terms and conditions for use of StackWatch

Last updated

July 24, 2026

1. Acceptance of Terms

By registering for or using the StackWatch service ("Service"), you accept these terms of use ("Terms"). If you do not accept all the terms, you must not use the Service.

2. Description of Service

StackWatch is a website and server monitoring platform that helps businesses and developers to:

  • Monitor website uptime and performance

  • Track server health and resource usage

  • Receive alerts and notifications for incidents

  • Analyze Lighthouse SEO and performance scores

3. User Registration and Account
3.1 Registration
  • • You must provide accurate and complete information upon registration

  • • You are responsible for keeping your account information up to date

  • • You must be at least 18 years old to use the Service

3.2 Account Security
  • • You are responsible for protecting your username and password

  • • You must immediately notify us of any suspected unauthorized use of your account

  • • We are not responsible for losses resulting from unauthorized use of your account

4. Privacy and Data Protection
4.1 Data Collection

We collect and process personal data in accordance with our privacy policy, including:

  • • Account information and contact details

  • • Monitor URLs and server information

  • • Usage data and subscription information

4.2 Data Protection
  • • We use industry standards to protect your data

  • • We do not share your personal information with third parties without your consent

  • • You have the right to access, correct, and delete your personal information

5. Usage Rights and Restrictions
5.1 Permitted Use
  • • Monitoring your own websites and servers

  • • Lawful business purposes

5.2 Prohibited Use
  • • Use the Service for illegal activities

  • • Attempt to gain unauthorized access

  • • Monitor websites without authorization

  • • Abuse the monitoring system

6. Disclaimer
6.1 Service Availability
  • • We do not guarantee that the Service will always be available or error-free

  • • We may perform maintenance that temporarily affects availability

6.2 Limitation of Liability
  • • Our liability is limited to the maximum permitted under applicable law

  • • We are not liable for indirect losses or consequential damages

7. Changes to Terms

7.1 Right to Modify

We may change these terms at any time. Material changes will be notified with at least 30 days' notice.

7.2 Notification Method

Changes are notified via email, message in the Service, or update on our website.

8. Governing Law and Dispute Resolution

• These terms are governed by applicable law

• Disputes shall be attempted to be resolved amicably

• Legal disputes will be handled according to jurisdiction requirements

9. Contact Information

For questions about these terms, contact us at: support@stackwatch.no

By using StackWatch, you confirm that you have read, understood, and accepted these terms of use.