API Reference

Documentation Coming Soon

This documentation page is being written. Check back soon or contact us for help.

Authentication

All API requests require authentication using your project API key:

Authorization: Bearer your-api-key-here

Base URL

https://api.stackwatch.dev/v1

Endpoints

POST /events

Submit an error or event.

{
    "type": "error",
    "message": "Undefined variable $user",
    "level": "error",
    "file": "app/Http/Controllers/UserController.php",
    "line": 45,
    "stack_trace": "...",
    "context": {
        "request": { "url": "/api/users", "method": "GET" },
        "user": { "id": 123 }
    }
}

GET /projects

List all projects.

GET /projects/{id}/errors

List errors for a project.