AlterLabAlterLab
PricingComparePlaygroundBlogDocsChangelog
    AlterLabAlterLab
    PricingComparePlaygroundBlogDocsChangelog
    IntroductionQuickstartInstallationYour First Request
    REST APIJob PollingAPI KeysSessions APINew
    OverviewPythonNode.js
    JavaScript RenderingOutput FormatsPDF & OCRCachingWebhooksJSON Schema FilteringWebSocket Real-TimeBring Your Own ProxyProAuthenticated ScrapingNewWeb CrawlingBatch ScrapingSchedulerChange DetectionCloud Storage ExportSpend LimitsOrganizations & TeamsAlerts & Notifications
    Structured ExtractionAIE-commerce ScrapingNews MonitoringPrice MonitoringMulti-Page CrawlingMonitoring DashboardAI Agent / MCPMCPData Pipeline to Cloud
    PricingRate LimitsError Codes
    From FirecrawlFrom ApifyFrom ScrapingBee / ScraperAPIFirecrawl v0 API ReferenceLegacy
    PlaygroundPricingStatus
    API Reference
    Auto-generated

    Alerts

    API reference for alerts endpoints.

    Auto-generated

    This page was generated from the OpenAPI spec. Runmake generate-docs to refresh after spec changes.

    GET /api/v1/alerts/history

    GET
    /api/v1/alerts/history

    List Alert History

    Parameters

    NameTypeRequiredDescription
    rule_idstringOptionalFilter by alert rule ID
    alert_type"credit_threshold" | "domain_failure_rate" | "job_consecutive_failures" | "response_time_spike" | "daily_failure_count" | "schedule_failure"OptionalFilter by alert type
    limitintegerOptionallimitDefault: 50
    offsetintegerOptionaloffsetDefault: 0
    X-Organization-IdstringOptionalX-Organization-Id

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/alerts/history \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "alerts": [],
      "total": 0
    }

    GET /api/v1/alerts/rules

    GET
    /api/v1/alerts/rules

    List Alert Rules

    Parameters

    NameTypeRequiredDescription
    alert_type"credit_threshold" | "domain_failure_rate" | "job_consecutive_failures" | "response_time_spike" | "daily_failure_count" | "schedule_failure"OptionalFilter by alert type
    include_inactivebooleanOptionalInclude disabled rulesDefault: False
    X-Organization-IdstringOptionalX-Organization-Id

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/alerts/rules \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "rules": [],
      "total": 0
    }

    POST /api/v1/alerts/rules

    POST
    /api/v1/alerts/rules

    Create Alert Rule

    Parameters

    NameTypeRequiredDescription
    X-Organization-IdstringOptionalX-Organization-Id
    namestring
    Required
    Human-readable name
    alert_type"credit_threshold" | "domain_failure_rate" | "job_consecutive_failures" | "response_time_spike" | "daily_failure_count" | "schedule_failure"
    Required
    Supported alert types.
    conditionsobject
    Required
    Conditions for the alert (varies by alert_type)
    domain_filterstring[]Optionaldomain_filter
    channelsobjectOptionalDelivery channels: {{email: bool, webhook_id: str}}Default: {{'email': True}}
    cooldown_minutesintegerOptionalMinutes to wait before re-alerting (5 min to 24 hours)Default: 60

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/alerts/rules \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "example_name",
        "alert_type": "...",
        "conditions": "...",
        "channels": "..."
      }'

    Response Example

    JSON
    {
      "status": "ok"
    }

    GET /api/v1/alerts/rules/{rule_id}

    GET
    /api/v1/alerts/rules/{rule_id}

    Get Alert Rule

    Parameters

    NameTypeRequiredDescription
    rule_idstring
    Required
    Alert rule ID
    X-Organization-IdstringOptionalX-Organization-Id

    Request Example

    Bash
    curl -X GET https://api.alterlab.io/api/v1/alerts/rules/<rule_id> \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "id": "example",
      "organization_id": "example",
      "name": "example",
      "alert_type": "example",
      "conditions": {},
      "domain_filter": "example"
    }

    PATCH /api/v1/alerts/rules/{rule_id}

    PATCH
    /api/v1/alerts/rules/{rule_id}

    Update Alert Rule

    Parameters

    NameTypeRequiredDescription
    rule_idstring
    Required
    Alert rule ID
    X-Organization-IdstringOptionalX-Organization-Id
    namestringOptionalname
    conditionsobjectOptionalconditions
    domain_filterstring[]Optionaldomain_filter
    channelsobjectOptionalchannels
    cooldown_minutesintegerOptionalcooldown_minutes
    is_activebooleanOptionalis_active

    Request Example

    Bash
    curl -X PATCH https://api.alterlab.io/api/v1/alerts/rules/<rule_id> \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "id": "example",
      "organization_id": "example",
      "name": "example",
      "alert_type": "example",
      "conditions": {},
      "domain_filter": "example"
    }

    DELETE /api/v1/alerts/rules/{rule_id}

    DELETE
    /api/v1/alerts/rules/{rule_id}

    Delete Alert Rule

    Parameters

    NameTypeRequiredDescription
    rule_idstring
    Required
    Alert rule ID
    X-Organization-IdstringOptionalX-Organization-Id

    Request Example

    Bash
    curl -X DELETE https://api.alterlab.io/api/v1/alerts/rules/<rule_id> \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json"

    Response Example

    JSON
    {
      "status": "ok"
    }
    Last updated: March 2026

    On this page