API Reference
The Captureze API allows you to manage schedules, trigger screenshots, and access your data programmatically.
Note: API access is available on Starter and Pro plans.
Authentication
All API requests require authentication using an API key. You can create API keys in Settings → API Keys.
Using Your API Key
Include your API key in the X-API-Key header:
curl -X GET https://captureze.com/api/schedules \
-H "X-API-Key: your_api_key_here" Endpoints
Base URL
https://captureze.com/api Schedules
/schedules List all schedules for your account.
/schedules/:id Get a specific schedule by ID.
/schedules Create a new schedule.
Request body
{
"url": "https://example.com",
"name": "Example Monitor",
"interval": "1h",
"viewport": "desktop",
"fullPage": true,
"diffEnabled": true,
"diffThreshold": 1
} /schedules/:id Update an existing schedule.
/schedules/:id Delete a schedule and all its screenshots.
/schedules/:id/screenshot Trigger an immediate screenshot for a schedule.
Screenshots
/schedules/:id/screenshots List all screenshots for a schedule.
/screenshots/:id Get a specific screenshot by ID.
Response Format
All responses are in JSON format. Successful responses include the requested data:
{
"schedules": [
{
"id": "uuid",
"name": "Example Monitor",
"url": "https://example.com",
"interval": "1h",
"status": "active",
"lastScreenshot": "2025-01-15T10:30:00Z"
}
]
} Error Handling
Errors return appropriate HTTP status codes with an error message:
{
"error": "Schedule not found"
} Common Status Codes
200- Success201- Created400- Bad request (invalid parameters)401- Unauthorized (invalid or missing API key)404- Not found429- Rate limited500- Server error
Rate Limits
API requests are rate limited based on your plan:
- Starter - 100 requests per minute
- Pro - 500 requests per minute
Interactive API Docs
Explore the full API with our interactive documentation at /api/docs.